From 2d0d096bd16838d7c77422918400514c7c5e5aa0 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 21 Oct 2014 00:24:02 +0000 Subject: [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 --- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld') 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 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"); -- cgit v1.2.3