projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4edffbd
)
[RuntimeDyld] Skip undefined symbols when building the symbol table.
author
Lang Hames
<lhames@gmail.com>
Wed, 30 Nov 2016 01:12:07 +0000
(
01:12
+0000)
committer
Lang Hames
<lhames@gmail.com>
Wed, 30 Nov 2016 01:12:07 +0000
(
01:12
+0000)
Storing these in the symbol table (with zero values) is just wasted space.
llvm-svn: 288225
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index
82b582a
..
b1fa578
100644
(file)
--- a/
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@
-205,6
+205,10
@@
RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) {
++I) {
uint32_t Flags = I->getFlags();
+ // Skip undefined symbols.
+ if (Flags & SymbolRef::SF_Undefined)
+ continue;
+
if (Flags & SymbolRef::SF_Common)
CommonSymbols.push_back(*I);
else {