[llvm-commits] [llvm] r141824 - /llvm/trunk/lib/Object/MachOObjectFile.cpp
Owen Anderson
resistor at mac.com
Wed Oct 12 15:23:12 PDT 2011
Author: resistor
Date: Wed Oct 12 17:23:12 2011
New Revision: 141824
URL: http://llvm.org/viewvc/llvm-project?rev=141824&view=rev
Log:
Don't label a STAB debugging symbol as a function symbol.
Modified:
llvm/trunk/lib/Object/MachOObjectFile.cpp
Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=141824&r1=141823&r2=141824&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Wed Oct 12 17:23:12 2011
@@ -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;
More information about the llvm-commits
mailing list