mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +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:
@ -702,11 +702,10 @@ static void PrintSymbolTable(const ObjectFile *o) {
|
||||
uint64_t Address;
|
||||
SymbolRef::Type Type;
|
||||
uint64_t Size;
|
||||
uint32_t Flags;
|
||||
uint32_t Flags = si->getFlags();
|
||||
section_iterator Section = o->end_sections();
|
||||
if (error(si->getName(Name))) continue;
|
||||
if (error(si->getAddress(Address))) continue;
|
||||
if (error(si->getFlags(Flags))) continue;
|
||||
if (error(si->getType(Type))) continue;
|
||||
if (error(si->getSize(Size))) continue;
|
||||
if (error(si->getSection(Section))) continue;
|
||||
|
Reference in New Issue
Block a user