summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-10-21 00:24:02 +0000
committerLang Hames <lhames@gmail.com>2014-10-21 00:24:02 +0000
commit2d0d096bd16838d7c77422918400514c7c5e5aa0 (patch)
tree8e0931ea040d2e351a71e0665abf21e82109ef13 /llvm/lib/ExecutionEngine/RuntimeDyld
parent5a3f5f751bdca3483e1edb0d3ac025a466c1ec2d (diff)
downloadbcm5719-llvm-2d0d096bd16838d7c77422918400514c7c5e5aa0.tar.gz
bcm5719-llvm-2d0d096bd16838d7c77422918400514c7c5e5aa0.zip
[MCJIT] Temporarily revert r220245 - it broke several bots.
(See e.g. http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/17653) llvm-svn: 220249
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index 5c16f0ab712..488130112de 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -205,14 +205,10 @@ RuntimeDyldImpl::loadObject(std::unique_ptr<ObjectImage> Obj) {
bool IsCode = SI->isText();
unsigned SectionID =
findOrEmitSection(*Obj, *SI, IsCode, LocalSections);
- // Add the symbol to the local symbol table for this module.
LocalSymbols[Name.data()] = SymbolLoc(SectionID, SectOffset);
DEBUG(dbgs() << "\tOffset: " << format("%p", (uintptr_t)SectOffset)
<< " flags: " << Flags << " SID: " << SectionID);
- // If exported, add to the global symbol table for other modules to also link in.
- if (Flags & SymbolRef::SF_Exported) {
- GlobalSymbolTable[Name] = SymbolLoc(SectionID, SectOffset);
- }
+ GlobalSymbolTable[Name] = SymbolLoc(SectionID, SectOffset);
}
}
DEBUG(dbgs() << "\tType: " << SymType << " Name: " << Name << "\n");
OpenPOWER on IntegriCloud