summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-09-27 19:27:20 +0000
committerLang Hames <lhames@gmail.com>2018-09-27 19:27:20 +0000
commitc5192f751a5012fddfc1f2a2fa03db02476a183f (patch)
tree1256ef894d90d7103b2bb7bcbe4571cc5fae33a6 /llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
parent3ac3c0d717c64365c5e55a003f67e9b2460fd660 (diff)
downloadbcm5719-llvm-c5192f751a5012fddfc1f2a2fa03db02476a183f.tar.gz
bcm5719-llvm-c5192f751a5012fddfc1f2a2fa03db02476a183f.zip
[ORC] Coalesce all of ORC's symbol renaming / linkage-promotion utilities into
one SymbolLinkagePromoter utility. SymbolLinkagePromoter renames anonymous and private symbols, and bumps all linkages to at least global/hidden-visibility. Modules whose symbols have been promoted by this utility can be decomposed into sub-modules without introducing link errors. This is used by the CompileOnDemandLayer to extract single-function modules for lazy compilation. llvm-svn: 343257
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/LLJIT.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/LLJIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index fef190ba575..91fa4ec2077 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -181,7 +181,7 @@ Error LLLazyJIT::addLazyIRModule(JITDylib &JD, ThreadSafeModule TSM) {
if (auto Err = applyDataLayout(*TSM.getModule()))
return Err;
- makeAllSymbolsExternallyAccessible(*TSM.getModule());
+ PromoteSymbols(*TSM.getModule());
recordCtorDtors(*TSM.getModule());
OpenPOWER on IntegriCloud