[llvm] r344763 - [ORC] Add a createJITDylib method to LLJIT.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 18 15:42:32 PDT 2018
Author: lhames
Date: Thu Oct 18 15:42:32 2018
New Revision: 344763
URL: http://llvm.org/viewvc/llvm-project?rev=344763&view=rev
Log:
[ORC] Add a createJITDylib method to LLJIT.
Because I'm about to get on stage at the dev meeting and claim that it exists.
This method creates a JITDylib instance with the given name and returns a
reference to it.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h?rev=344763&r1=344762&r2=344763&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/LLJIT.h Thu Oct 18 15:42:32 2018
@@ -49,6 +49,11 @@ public:
/// Returns a reference to the JITDylib representing the JIT'd main program.
JITDylib &getMainJITDylib() { return Main; }
+ /// Create a new JITDylib with the given name and return a reference to it.
+ JITDylib &createJITDylib(std::string Name) {
+ return ES->createJITDylib(std::move(Name));
+ }
+
/// Convenience method for defining an absolute symbol.
Error defineAbsolute(StringRef Name, JITEvaluatedSymbol Address);
More information about the llvm-commits
mailing list