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

llvm-svn: 141824
This commit is contained in:
Owen Anderson
2011-10-12 22:23:12 +00:00
parent 4ffde88b42
commit 34e1707fbb

View File

@@ -241,6 +241,11 @@ error_code MachOObjectFile::getSymbolType(DataRefImpl Symb,
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;