summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitcef56419820d792b9e8536e6e684ce50be2f376a (patch)
tree47a4ac86526edde87cd9009fe9166c72fffd8168 /llvm/lib
parent303c81c773eca7f11b3d59a9285ec30a3bbaca08 (diff)
downloadbcm5719-llvm-cef56419820d792b9e8536e6e684ce50be2f376a.tar.gz
bcm5719-llvm-cef56419820d792b9e8536e6e684ce50be2f376a.zip
STABS symbols are debug symbols.
llvm-svn: 142673
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 472e0727c33..7c6c232e63d 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/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 :
OpenPOWER on IntegriCloud