summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2019-08-14 01:03:35 +0000
committerDouglas Yung <douglas.yung@sony.com>2019-08-14 01:03:35 +0000
commit4df908a46a231621f2322027d6ca20e48a8bec1a (patch)
tree12051967b3482800c10f5e13cbe641f39801c4a4 /examples
parentf88b97bb2a67b9852e9f603a9bf9592f20b948b0 (diff)
downloadclang-4df908a46a231621f2322027d6ca20e48a8bec1a.tar.gz
[ORC] Fix clang-interpreter example code broken by r368707.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/clang-interpreter/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp
index 69808428a3..b81b7ebbb6 100644
--- a/examples/clang-interpreter/main.cpp
+++ b/examples/clang-interpreter/main.cpp
@@ -61,11 +61,12 @@ private:
return llvm::make_unique<SectionMemoryManager>();
}
- SimpleJIT(std::unique_ptr<TargetMachine> TM, DataLayout DL,
- DynamicLibrarySearchGenerator ProcessSymbolsGenerator)
+ SimpleJIT(
+ std::unique_ptr<TargetMachine> TM, DataLayout DL,
+ std::unique_ptr<DynamicLibrarySearchGenerator> ProcessSymbolsGenerator)
: TM(std::move(TM)), DL(std::move(DL)) {
llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr);
- ES.getMainJITDylib().setGenerator(std::move(ProcessSymbolsGenerator));
+ ES.getMainJITDylib().addGenerator(std::move(ProcessSymbolsGenerator));
}
public: