Skip to content

Commit

Permalink
Update clang-interpreter example to incorporate changes in ce2207a.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhames committed Jan 22, 2020
1 parent a90a650 commit b54aa05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/examples/clang-interpreter/main.cpp
Expand Up @@ -56,7 +56,8 @@ class SimpleJIT {
MangleAndInterner Mangle{ES, DL};
JITDylib &MainJD{ES.createJITDylib("<main>")};
RTDyldObjectLinkingLayer ObjectLayer{ES, createMemMgr};
IRCompileLayer CompileLayer{ES, ObjectLayer, SimpleCompiler(*TM)};
IRCompileLayer CompileLayer{ES, ObjectLayer,
std::make_unique<SimpleCompiler>(*TM)};

static std::unique_ptr<SectionMemoryManager> createMemMgr() {
return std::make_unique<SectionMemoryManager>();
Expand Down

0 comments on commit b54aa05

Please sign in to comment.