aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-10-21 19:26:54 +0000
committerOwen Anderson <resistor@mac.com>2011-10-21 19:26:54 +0000
commita48aab924d93be3cdb4a230a9158d210b97b3f56 (patch)
tree4a1881db0d600f850c5a0e6784ae62ce3d0722e5
parent8d992f5c2c90ebc8963679de51f461dc5d54fae1 (diff)
downloadexternal_llvm-a48aab924d93be3cdb4a230a9158d210b97b3f56.zip
external_llvm-a48aab924d93be3cdb4a230a9158d210b97b3f56.tar.gz
external_llvm-a48aab924d93be3cdb4a230a9158d210b97b3f56.tar.bz2
STABS symbols are debug symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142673 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Object/MachOObjectFile.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index 472e072..7c6c232 100644
--- a/lib/Object/MachOObjectFile.cpp
+++ b/lib/Object/MachOObjectFile.cpp
@@ -294,8 +294,10 @@ error_code MachOObjectFile::getSymbolType(DataRefImpl Symb,
Res = SymbolRef::ST_Other;
// If this is a STAB debugging symbol, we can do nothing more.
- if (n_type & MachO::NlistMaskStab)
+ if (n_type & MachO::NlistMaskStab) {
+ Res = SymbolRef::ST_Debug;
return object_error::success;
+ }
switch (n_type & MachO::NlistMaskType) {
case MachO::NListTypeUndefined :