projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd74988
)
Don't label a STAB debugging symbol as a function symbol.
author
Owen Anderson
<resistor@mac.com>
Wed, 12 Oct 2011 22:23:12 +0000
(22:23 +0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 12 Oct 2011 22:23:12 +0000
(22:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141824
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/MachOObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/MachOObjectFile.cpp
b/lib/Object/MachOObjectFile.cpp
index 0d4dbd9ec45abc5436a975d9cc276270b82c8593..86d87ed0f2f7d94299ac94fff435d6763711ee5e 100644
(file)
--- a/
lib/Object/MachOObjectFile.cpp
+++ b/
lib/Object/MachOObjectFile.cpp
@@
-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;