diff options
author | David Meyer <pdox@google.com> | 2012-02-28 23:47:53 +0000 |
---|---|---|
committer | David Meyer <pdox@google.com> | 2012-02-28 23:47:53 +0000 |
commit | c46255a32ec92c427e621b6d7eabd887962ce4a4 (patch) | |
tree | 63caf01b15b0c1be7b8ee6f9d93dc14ea41f7371 /tools/llvm-objdump/llvm-objdump.cpp | |
parent | 9993a3aebb27c5cac55429a23af2d2a0f129cb95 (diff) |
In the ObjectFile interface, replace isInternal(), isAbsolute(), isGlobal(), and isWeak(), with a bitset of flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | tools/llvm-objdump/llvm-objdump.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 44d681fc1c..14147670f5 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -482,21 +482,21 @@ static void PrintSymbolTable(const ObjectFile *o) { if (error(ec)) return; StringRef Name; uint64_t Address; - bool Global; SymbolRef::Type Type; - bool Weak; - bool Absolute; uint64_t Size; + uint32_t Flags; section_iterator Section = o->end_sections(); if (error(si->getName(Name))) continue; if (error(si->getAddress(Address))) continue; - if (error(si->isGlobal(Global))) continue; + if (error(si->getFlags(Flags))) continue; if (error(si->getType(Type))) continue; - if (error(si->isWeak(Weak))) continue; - if (error(si->isAbsolute(Absolute))) continue; if (error(si->getSize(Size))) continue; if (error(si->getSection(Section))) continue; + bool Global = Flags & SymbolRef::SF_Global; + bool Weak = Flags & SymbolRef::SF_Weak; + bool Absolute = Flags & SymbolRef::SF_Absolute; + if (Address == UnknownAddressOrSize) Address = 0; if (Size == UnknownAddressOrSize) |