diff options
author | Lang Hames <lhames@gmail.com> | 2018-09-28 21:49:53 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-09-28 21:49:53 +0000 |
commit | 3e709d5f785aa67f93e33c49a94b2806e4456bd3 (patch) | |
tree | ce2aa92a81dce12775d1098a4bcd98d1536c4e8a /llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp | |
parent | d47b5c7bedf2c2439628c4ba7212c00db5f97854 (diff) | |
download | bcm5719-llvm-3e709d5f785aa67f93e33c49a94b2806e4456bd3.tar.gz bcm5719-llvm-3e709d5f785aa67f93e33c49a94b2806e4456bd3.zip |
[ORC] Add more utilities to aid debugging output.
(1) A const accessor for the LLVMContext held by a ThreadSafeContext.
(2) A const accessor for the ThreadSafeModules held by an IRMaterializationUnit.
(3) A const MaterializationResponsibility reference to IRTransformLayer2's
transform function. This makes IRTransformLayer2 useful for JIT debugging
(since it can inspect JIT state through the responsibility argument) as well
as program transformations.
llvm-svn: 343365
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp b/llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp index ddd5c4a10c1..7a79a382d8d 100644 --- a/llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp +++ b/llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp @@ -22,7 +22,7 @@ void IRTransformLayer2::emit(MaterializationResponsibility R, VModuleKey K, ThreadSafeModule TSM) { assert(TSM.getModule() && "Module must not be null"); - if (auto TransformedTSM = Transform(std::move(TSM))) + if (auto TransformedTSM = Transform(std::move(TSM), R)) BaseLayer.emit(std::move(R), std::move(K), std::move(*TransformedTSM)); else { R.failMaterialization(); |