summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump
diff options
context:
space:
mode:
authorDavid Meyer <pdox@google.com>2012-02-28 23:47:53 +0000
committerDavid Meyer <pdox@google.com>2012-02-28 23:47:53 +0000
commit1df4b84db412a72dd43b473d1291baf21fd3f8d1 (patch)
treed210c64af472199d842082553cdf6341c01a4de9 /llvm/tools/llvm-objdump
parentfcbfdee5dfb456e31a4e20d392ab23273aa59c07 (diff)
downloadbcm5719-llvm-1df4b84db412a72dd43b473d1291baf21fd3f8d1.tar.gz
bcm5719-llvm-1df4b84db412a72dd43b473d1291baf21fd3f8d1.zip
In the ObjectFile interface, replace isInternal(), isAbsolute(), isGlobal(), and isWeak(), with a bitset of flags.
llvm-svn: 151670
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 44d681fc1cd..14147670f5d 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud