From a48aab924d93be3cdb4a230a9158d210b97b3f56 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 21 Oct 2011 19:26:54 +0000 Subject: [PATCH] STABS symbols are debug symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142673 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Object/MachOObjectFile.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index 472e0727c33..7c6c232e63d 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 :