mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
Don't label a STAB debugging symbol as a function symbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd74988fb9
commit
10a8c62d46
@ -241,6 +241,11 @@ error_code MachOObjectFile::getSymbolType(DataRefImpl Symb,
|
|||||||
n_type = Entry->Type;
|
n_type = Entry->Type;
|
||||||
}
|
}
|
||||||
Res = SymbolRef::ST_Other;
|
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) {
|
switch (n_type & MachO::NlistMaskType) {
|
||||||
case MachO::NListTypeUndefined :
|
case MachO::NListTypeUndefined :
|
||||||
Res = SymbolRef::ST_External;
|
Res = SymbolRef::ST_External;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user