mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 13:21:30 +00:00
[RuntimeDyld] Skip undefined symbols when building the symbol table.
Storing these in the symbol table (with zero values) is just wasted space. llvm-svn: 288225
This commit is contained in:
parent
124cca126e
commit
9a12dd32ed
@ -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…
Reference in New Issue
Block a user