r368778 - [ORC] Fix clang-interpreter example code broken by r368707.

Douglas Yung via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 13 18:03:35 PDT 2019


Author: dyung
Date: Tue Aug 13 18:03:35 2019
New Revision: 368778

URL: http://llvm.org/viewvc/llvm-project?rev=368778&view=rev
Log:
[ORC] Fix clang-interpreter example code broken by r368707.

Modified:
    cfe/trunk/examples/clang-interpreter/main.cpp

Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=368778&r1=368777&r2=368778&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Tue Aug 13 18:03:35 2019
@@ -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:




More information about the cfe-commits mailing list