summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2017-06-22 21:06:54 +0000
committerLang Hames <lhames@gmail.com>2017-06-22 21:06:54 +0000
commit266202236f5269873ba9b1a29b59350242852d9b (patch)
tree09958b6dcb5e5317100ee40c3346880b5c43c530 /llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5
parent40a47a870294cdc0bacb40d6a66e18781fd40d32 (diff)
downloadbcm5719-llvm-266202236f5269873ba9b1a29b59350242852d9b.tar.gz
bcm5719-llvm-266202236f5269873ba9b1a29b59350242852d9b.zip
[ORC] Switch the object layer API from addObjectSet to addObject (singular), and
move the ObjectCache from the IRCompileLayer to SimpleCompiler. This is the first in a series of patches aimed at cleaning up and improving the robustness and performance of the ORC APIs. llvm-svn: 306058
Diffstat (limited to 'llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5')
-rw-r--r--llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h
index 0ee9d094ab8..84916b8f2b8 100644
--- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h
+++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h
@@ -78,8 +78,8 @@ class KaleidoscopeJIT {
private:
std::unique_ptr<TargetMachine> TM;
const DataLayout DL;
- RTDyldObjectLinkingLayer<> ObjectLayer;
- IRCompileLayer<decltype(ObjectLayer)> CompileLayer;
+ RTDyldObjectLinkingLayer ObjectLayer;
+ IRCompileLayer<decltype(ObjectLayer), SimpleCompiler> CompileLayer;
using OptimizeFunction =
std::function<std::unique_ptr<Module>(std::unique_ptr<Module>)>;
OpenPOWER on IntegriCloud