summaryrefslogtreecommitdiff
path: root/tools/llvm-nm
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
commitc46255a32ec92c427e621b6d7eabd887962ce4a4 (patch)
tree63caf01b15b0c1be7b8ee6f9d93dc14ea41f7371 /tools/llvm-nm
parent9993a3aebb27c5cac55429a23af2d2a0f129cb95 (diff)
downloadllvm-c46255a32ec92c427e621b6d7eabd887962ce4a4.tar.gz
llvm-c46255a32ec92c427e621b6d7eabd887962ce4a4.tar.bz2
llvm-c46255a32ec92c427e621b6d7eabd887962ce4a4.tar.xz
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-nm')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index 8688d4af65..9cf83b6337 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -291,9 +291,9 @@ static void DumpSymbolNamesFromObject(ObjectFile *obj) {
}
for (symbol_iterator i = ibegin; i != iend; i.increment(ec)) {
if (error(ec)) break;
- bool internal;
- if (error(i->isInternal(internal))) break;
- if (!DebugSyms && internal)
+ uint32_t symflags;
+ if (error(i->getFlags(symflags))) break;
+ if (!DebugSyms && (symflags & SymbolRef::SF_FormatSpecific))
continue;
NMSymbol s;
s.Size = object::UnknownAddressOrSize;