From 78165c852f7e29a26c947087460dcd5c3ef4acbd Mon Sep 17 00:00:00 2001 From: Zentrik Date: Sat, 31 Aug 2024 14:40:23 +0100 Subject: [PATCH] Adapt to https://github.com/llvm/llvm-project/pull/98735 --- src/debuginfo.cpp | 6 +++--- src/llvm-simdloop.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/debuginfo.cpp b/src/debuginfo.cpp index 84550811072fe7..325fc9588c8c6a 100644 --- a/src/debuginfo.cpp +++ b/src/debuginfo.cpp @@ -287,7 +287,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()); auto Section = cantFail(sym_iter.getSection()); assert(Section != EndSection && Section->isText()); @@ -304,10 +304,10 @@ void JITDebugInfoRegistry::registerJITObject(const object::ObjectFile &Object, if (lookupWriteAddress) SectionWriteCheck = (uintptr_t)lookupWriteAddress((void*)SectionLoadAddr); Addr += SectionWriteCheck - SectionLoadCheck; - if (sName.equals("__UnwindData")) { + if (sName == "__UnwindData") { UnwindData = (uint8_t*)Addr; } - else if (sName.equals("__catchjmp")) { + else if (sName == "__catchjmp") { catchjmp = (uint8_t*)Addr; } } diff --git a/src/llvm-simdloop.cpp b/src/llvm-simdloop.cpp index 07afa8c930deb4..ed2a04e650f2af 100644 --- a/src/llvm-simdloop.cpp +++ b/src/llvm-simdloop.cpp @@ -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; }