Skip to content

Commit 971fd66

Browse files
committed
[Comgr][NFC] Relpace deprecated StringRef.equals with ==
Change-Id: If657c8d3ffe10f958c64814514c2851047d08fb2
1 parent d36f992 commit 971fd66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

amd/comgr/src/comgr-symbol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ SymbolContext *SymbolHelper::createBinary(StringRef Ins, const char *Name,
146146
return NULL;
147147
}
148148
StringRef SymName = *SymNameOrErr;
149-
if (SymName.equals(Sname)) {
149+
if (SymName == Sname) {
150150
#if DEBUG
151151
outs() << "Found! " << sname.data() << "\n";
152152
#endif

amd/comgr/src/comgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,7 @@ amd_comgr_populate_name_expression_map(amd_comgr_data_t Data,
21262126
}
21272127
StringRef SecName = std::move(SecNameOrError.get());
21282128

2129-
if (SecName.equals(StringRef(".rodata")))
2129+
if (SecName == StringRef(".rodata"))
21302130
rodataShdr = Shdr;
21312131
}
21322132
}

0 commit comments

Comments
 (0)