mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Another strncmp -> StringRef.startswith simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94203 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0fd90fd8d1
commit
b0706d1859
@ -147,7 +147,7 @@ static void StripSymtab(ValueSymbolTable &ST, bool PreserveDbgInfo) {
|
||||
// Strip the symbol table of its names.
|
||||
static void StripTypeSymtab(TypeSymbolTable &ST, bool PreserveDbgInfo) {
|
||||
for (TypeSymbolTable::iterator TI = ST.begin(), E = ST.end(); TI != E; ) {
|
||||
if (PreserveDbgInfo && strncmp(TI->first.c_str(), "llvm.dbg", 8) == 0)
|
||||
if (PreserveDbgInfo && StringRef(TI->first).startswith("llvm.dbg"))
|
||||
++TI;
|
||||
else
|
||||
ST.remove(TI++);
|
||||
|
Loading…
Reference in New Issue
Block a user