summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-30 13:22:59 +0000
committerTim Northover <tnorthover@apple.com>2014-05-30 13:22:59 +0000
commiteaef074d45b25e6d91a44fba7f9756ae1ad1175a (patch)
tree81f0f97da5d35661598c62dc25ea486e57398b40 /llvm/lib/Object/MachOObjectFile.cpp
parent6bfdaf5a206010373a9a8df5dbb13127810e6260 (diff)
downloadbcm5719-llvm-eaef074d45b25e6d91a44fba7f9756ae1ad1175a.tar.gz
bcm5719-llvm-eaef074d45b25e6d91a44fba7f9756ae1ad1175a.zip
MachO: support N_INDR aliases in assembly files.
This makes LLVM create N_INDR aliases (to be resolved by the linker) when appropriate. rdar://problem/15125513 llvm-svn: 209894
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index c6bab03d018..6dca9750c16 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -584,6 +584,9 @@ uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const {
if ((MachOType & MachO::N_TYPE) == MachO::N_UNDF)
Result |= SymbolRef::SF_Undefined;
+ if ((MachOType & MachO::N_TYPE) == MachO::N_INDR)
+ Result |= SymbolRef::SF_Indirect;
+
if (MachOType & MachO::N_STAB)
Result |= SymbolRef::SF_FormatSpecific;
OpenPOWER on IntegriCloud