mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Simplify getSymbolFlags.
None of the object formats require extra parsing to compute these flags, so the method cannot fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -561,9 +561,7 @@ static void dumpSymbolNamesFromObject(ObjectFile *Obj) {
|
||||
getDynamicSymbolIterators(Obj, IBegin, IEnd);
|
||||
}
|
||||
for (symbol_iterator I = IBegin; I != IEnd; ++I) {
|
||||
uint32_t SymFlags;
|
||||
if (error(I->getFlags(SymFlags)))
|
||||
break;
|
||||
uint32_t SymFlags = I->getFlags();
|
||||
if (!DebugSyms && (SymFlags & SymbolRef::SF_FormatSpecific))
|
||||
continue;
|
||||
NMSymbol S;
|
||||
|
Reference in New Issue
Block a user