Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Oct 13, 2024
1 parent 8566919 commit 32cb7fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ void JITDebugInfoRegistry::registerJITObject(const object::ObjectFile &Object,
uint8_t *catchjmp = NULL;
for (const object::SymbolRef &sym_iter : Object.symbols()) {
StringRef sName = cantFail(sym_iter.getName());
if (sName.equals("__UnwindData") || sName.equals("__catchjmp")) {
if (sName == "__UnwindData" || sName == "__catchjmp") {
uint64_t Addr = cantFail(sym_iter.getAddress()); // offset into object (including section offset)
auto Section = cantFail(sym_iter.getSection());
assert(Section != EndSection && Section->isText());
Expand All @@ -310,10 +310,10 @@ void JITDebugInfoRegistry::registerJITObject(const object::ObjectFile &Object,
SectionAddrCheck = SectionAddr;
SectionLoadCheck = SectionLoadAddr;
Addr += SectionLoadAddr - SectionAddr;
if (sName.equals("__UnwindData")) {
if (sName == "__UnwindData") {
UnwindData = (uint8_t*)Addr;
}
else if (sName.equals("__catchjmp")) {
else if (sName == "__catchjmp") {
catchjmp = (uint8_t*)Addr;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/llvm-simdloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ static bool processLoop(Loop &L, OptimizationRemarkEmitter &ORE, ScalarEvolution
if (S) {
LLVM_DEBUG(dbgs() << "LSL: found " << S->getString() << "\n");
if (S->getString().starts_with("julia")) {
if (S->getString().equals("julia.simdloop"))
if (S->getString() == "julia.simdloop")
simd = true;
if (S->getString().equals("julia.ivdep"))
if (S->getString() == "julia.ivdep")
ivdep = true;
continue;
}
Expand Down

0 comments on commit 32cb7fe

Please sign in to comment.