From: Douglas Yung Date: Wed, 14 Aug 2019 01:03:35 +0000 (+0000) Subject: [ORC] Fix clang-interpreter example code broken by r368707. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4df908a46a231621f2322027d6ca20e48a8bec1a;p=clang [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 --- 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(); } - SimpleJIT(std::unique_ptr TM, DataLayout DL, - DynamicLibrarySearchGenerator ProcessSymbolsGenerator) + SimpleJIT( + std::unique_ptr TM, DataLayout DL, + std::unique_ptr 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: