[MCJIT] Temporarily revert r220245 - it broke several bots.
[oota-llvm.git] / lib / ExecutionEngine / RuntimeDyld / RuntimeDyld.cpp
index 5c16f0ab7125dc2ad47ec24f02d7b0713a5a56fc..488130112decfb757395d79d6420a1bb558d7132 100644 (file)
@@ -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");