forked from OSchip/llvm-project
[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:
parent
d46b05df84
commit
96079a368a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue