summaryrefslogtreecommitdiff
path: root/clang/examples
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2020-01-21 22:00:17 -0800
committerLang Hames <lhames@gmail.com>2020-01-21 22:00:50 -0800
commitb54aa053d3aeeab0cdaecb6286419138b7da5ef4 (patch)
tree49a2a651614191455a7bfb7a090f4d7098db74fc /clang/examples
parenta90a6502ab35d3c15c7d56772e409c5632ce6cfb (diff)
downloadllvm-b54aa053d3aeeab0cdaecb6286419138b7da5ef4.tar.gz
Update clang-interpreter example to incorporate changes in ce2207abaf9.
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/clang-interpreter/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/examples/clang-interpreter/main.cpp b/clang/examples/clang-interpreter/main.cpp
index db6b0cce4fd1..c0aae4722306 100644
--- a/clang/examples/clang-interpreter/main.cpp
+++ b/clang/examples/clang-interpreter/main.cpp
@@ -56,7 +56,8 @@ private:
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>();