summaryrefslogtreecommitdiff
path: root/lib/Object
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
commit98f8bc9323658c0b875798e030be8420198db39a (patch)
treefab893932d8d4b19638f01a11708c1121157ca9c /lib/Object
parent910dc41e24ad5df5f634e9c69a29c142b988a93b (diff)
downloadllvm-98f8bc9323658c0b875798e030be8420198db39a.tar.gz
llvm-98f8bc9323658c0b875798e030be8420198db39a.tar.bz2
llvm-98f8bc9323658c0b875798e030be8420198db39a.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/MachOObjectFile.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index c6bab03d01..6dca9750c1 100644
--- a/lib/Object/MachOObjectFile.cpp
+++ b/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;