File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/examples/LLJITExamples/LLJITWithObjectCache Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,17 @@ class MyObjectCache : public ObjectCache {
50
50
51
51
void runJITWithCache (ObjectCache &ObjCache) {
52
52
53
- // Create an LLJIT instance with a custom CompileFunction .
53
+ // Create an LLJIT instance with a custom IRCompiler .
54
54
auto J = ExitOnErr (
55
55
LLJITBuilder ()
56
56
.setCompileFunctionCreator (
57
57
[&](JITTargetMachineBuilder JTMB)
58
- -> Expected<IRCompileLayer::CompileFunction > {
58
+ -> Expected<std::unique_ptr< IRCompileLayer::IRCompiler> > {
59
59
auto TM = JTMB.createTargetMachine ();
60
60
if (!TM)
61
61
return TM.takeError ();
62
- return IRCompileLayer::CompileFunction (
63
- TMOwningSimpleCompiler ( std::move (*TM), &ObjCache) );
62
+ return std::make_unique<TMOwningSimpleCompiler>( std::move (*TM),
63
+ &ObjCache);
64
64
})
65
65
.create ());
66
66
You can’t perform that action at this time.
0 commit comments