diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-01 07:00:35 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-12-01 07:00:35 +0000 |
commit | d64ecf26e7efc471882283fcd7a907ee192c1358 (patch) | |
tree | 5930537ddfa920de64a4011d03081d3170c8a915 /llvm/tools/llvm-nm/llvm-nm.cpp | |
parent | e2f1b4a651e37966c586ec4a8cf47a1255bcedaa (diff) | |
download | bcm5719-llvm-d64ecf26e7efc471882283fcd7a907ee192c1358.tar.gz bcm5719-llvm-d64ecf26e7efc471882283fcd7a907ee192c1358.zip |
Object: Set SF_Indirect in ModuleSymbolTable.
This lets us remove the last use of IRObjectFile::getSymbolGV() in llvm-nm.
Differential Revision: https://reviews.llvm.org/D27076
llvm-svn: 288321
Diffstat (limited to 'llvm/tools/llvm-nm/llvm-nm.cpp')
-rw-r--r-- | llvm/tools/llvm-nm/llvm-nm.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index 33385e9953e..381bca4514e 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -998,13 +998,8 @@ dumpSymbolNamesFromObject(SymbolicFile &Obj, bool printName, uint32_t SymFlags = Sym.getFlags(); if (!DebugSyms && (SymFlags & SymbolRef::SF_FormatSpecific)) continue; - if (WithoutAliases) { - if (IRObjectFile *IR = dyn_cast<IRObjectFile>(&Obj)) { - const GlobalValue *GV = IR->getSymbolGV(Sym.getRawDataRefImpl()); - if (GV && isa<GlobalAlias>(GV)) - continue; - } - } + if (WithoutAliases && (SymFlags & SymbolRef::SF_Indirect)) + continue; // If a "-s segname sectname" option was specified and this is a Mach-O // file and this section appears in this file, Nsect will be non-zero then // see if this symbol is a symbol from that section and if not skip it. |