Don't label a STAB debugging symbol as a function symbol.

llvm-svn: 141824
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 0d4dbd9..86d87ed 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -241,6 +241,11 @@
     n_type = Entry->Type;
   }
   Res = SymbolRef::ST_Other;
+
+  // If this is a STAB debugging symbol, we can do nothing more.
+  if (n_type & MachO::NlistMaskStab)
+    return object_error::success;
+
   switch (n_type & MachO::NlistMaskType) {
     case MachO::NListTypeUndefined :
       Res = SymbolRef::ST_External;