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 | e3134b8c5ce70b5c4036b83d3909f96412af20cc (patch) | |
tree | 6deaa2fdd83f28616f3328b01c37014506c90861 /lib/Object/ModuleSymbolTable.cpp | |
parent | 71fc8a346a2ff86ec254eb5b025c1b5c98565c8a (diff) | |
download | llvm-e3134b8c5ce70b5c4036b83d3909f96412af20cc.tar.gz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/ModuleSymbolTable.cpp')
-rw-r--r-- | lib/Object/ModuleSymbolTable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Object/ModuleSymbolTable.cpp b/lib/Object/ModuleSymbolTable.cpp index c8b1bb6b775f..90488007ff59 100644 --- a/lib/Object/ModuleSymbolTable.cpp +++ b/lib/Object/ModuleSymbolTable.cpp @@ -166,6 +166,8 @@ uint32_t ModuleSymbolTable::getSymbolFlags(Symbol S) const { } if (dyn_cast_or_null<Function>(GV->getBaseObject())) Res |= BasicSymbolRef::SF_Executable; + if (isa<GlobalAlias>(GV)) + Res |= BasicSymbolRef::SF_Indirect; if (GV->hasPrivateLinkage()) Res |= BasicSymbolRef::SF_FormatSpecific; if (!GV->hasLocalLinkage()) |