Author: Lang Hames Date: 2020-01-21T22:00:50-08:00 New Revision: b54aa053d3aeeab0cdaecb6286419138b7da5ef4
URL: https://github.com/llvm/llvm-project/commit/b54aa053d3aeeab0cdaecb6286419138b7da5ef4 DIFF: https://github.com/llvm/llvm-project/commit/b54aa053d3aeeab0cdaecb6286419138b7da5ef4.diff LOG: Update clang-interpreter example to incorporate changes in ce2207abaf9. Added: Modified: clang/examples/clang-interpreter/main.cpp Removed: ################################################################################ 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 @@ 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>(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits