[llvm] a37e8b8 - [ExecutionEngine] Simplify a string comparison (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 3 21:43:20 PST 2024
Author: Kazu Hirata
Date: 2024-02-03T21:43:08-08:00
New Revision: a37e8b85ee5187bc7a1fed7adce8ed5693215795
URL: https://github.com/llvm/llvm-project/commit/a37e8b85ee5187bc7a1fed7adce8ed5693215795
DIFF: https://github.com/llvm/llvm-project/commit/a37e8b85ee5187bc7a1fed7adce8ed5693215795.diff
LOG: [ExecutionEngine] Simplify a string comparison (NFC)
Added:
Modified:
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 9fdabf310d6ec..edeb563076fdc 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -648,7 +648,7 @@ void RuntimeDyldELF::resolveARMRelocation(const SectionEntry &Section,
void RuntimeDyldELF::setMipsABI(const ObjectFile &Obj) {
if (Arch == Triple::UnknownArch ||
- !StringRef(Triple::getArchTypePrefix(Arch)).equals("mips")) {
+ Triple::getArchTypePrefix(Arch) != "mips") {
IsMipsO32ABI = false;
IsMipsN32ABI = false;
IsMipsN64ABI = false;
More information about the llvm-commits
mailing list