diff options
author | Lang Hames <lhames@gmail.com> | 2015-01-15 22:33:30 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-01-15 22:33:30 +0000 |
commit | 7e0692b6149f3a6f9f2e78111f8d8ee13fbafd86 (patch) | |
tree | 76ce641cc8b1392462c577e186d0a99ac8ca6439 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 7f62ac8e4dba8191f48424e4c6ef59477d0edc16 (diff) | |
download | llvm-7e0692b6149f3a6f9f2e78111f8d8ee13fbafd86.zip llvm-7e0692b6149f3a6f9f2e78111f8d8ee13fbafd86.tar.gz llvm-7e0692b6149f3a6f9f2e78111f8d8ee13fbafd86.tar.bz2 |
[Object] Add SF_Exported flag. This flag will be set on all symbols that would
be exported from a dylib if their containing object file were linked into one.
No test case: No command line tools query this flag, and there are no Object
unit tests.
llvm-svn: 226217
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index e476976..978988c2 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -478,6 +478,9 @@ uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const { if (Value && Value != UnknownAddressOrSize) Result |= SymbolRef::SF_Common; } + + if (!(MachOType & MachO::N_PEXT)) + Result |= SymbolRef::SF_Exported; } if (MachOFlags & (MachO::N_WEAK_REF | MachO::N_WEAK_DEF)) |