summaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2020-03-25 13:07:00 -0700
committerLang Hames <lhames@gmail.com>2020-03-27 11:02:54 -0700
commitcb84e4827e43921659e75509dfb42ebf56c50502 (patch)
treeafae591b5573b9d48051f14529afa7d3602aef21 /llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
parentd38d06e6493fa6bc77d54589960007d7a91c8096 (diff)
[ORC] Introduce JITSymbolFlags::HasMaterializeSideEffectsOnly flag.
This flag can be used to mark a symbol as existing only for the purpose of enabling materialization. Such a symbol can be looked up to trigger materialization with the lookup returning only once materialization is complete. Symbols with this flag will never resolve however (to avoid permanently polluting the symbol table), and should only be looked up using the SymbolLookupFlags::WeaklyReferencedSymbol flag. The primary use case for this flag is initialization symbols.
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
index f660c4290e4c..e0582f73b2fc 100644
--- a/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
@@ -258,9 +258,6 @@ Error RTDyldObjectLinkingLayer::onObjLoad(
Symbols.erase(KV.first);
}
- if (const auto &InitSym = R.getInitializerSymbol())
- Symbols[InitSym] = JITEvaluatedSymbol();
-
if (auto Err = R.notifyResolved(Symbols)) {
R.failMaterialization();
return Err;