mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-15 18:49:51 +00:00
[RuntimeDyld] Skip undefined symbols when building the symbol table.
Storing these in the symbol table (with zero values) is just wasted space. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
502534bc2a
commit
db04d03093
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user