[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.

llvm-svn: 344763
This commit is contained in:
Lang Hames 2018-10-18 22:42:32 +00:00
parent d46b05df84
commit 96079a368a
1 changed files with 5 additions and 0 deletions

View File

@ -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);