Simplify interface: no need for the llvm::Module.
This commit is contained in:
parent
14a75773d6
commit
9c2d9fb700
@ -417,8 +417,7 @@ void IncrementalExecutor::addModule(llvm::Module* module) {
|
||||
}
|
||||
|
||||
|
||||
void* IncrementalExecutor::getAddressOfGlobal(llvm::Module* m,
|
||||
llvm::StringRef symbolName,
|
||||
void* IncrementalExecutor::getAddressOfGlobal(llvm::StringRef symbolName,
|
||||
bool* fromJIT /*=0*/) {
|
||||
// Return a symbol's address, and whether it was jitted.
|
||||
void* address
|
||||
|
@ -176,8 +176,7 @@ namespace cling {
|
||||
///\param[in] mangledName - the globa's name
|
||||
///\param[out] fromJIT - whether the symbol was JITted.
|
||||
///
|
||||
void* getAddressOfGlobal(llvm::Module* m, llvm::StringRef mangledName,
|
||||
bool* fromJIT = 0);
|
||||
void* getAddressOfGlobal(llvm::StringRef mangledName, bool* fromJIT = 0);
|
||||
|
||||
///\brief Return the address of a global from the ExecutionEngine (as
|
||||
/// opposed to dynamic libraries). Forces the emission of the symbol if
|
||||
|
@ -1175,8 +1175,7 @@ namespace cling {
|
||||
// Return a symbol's address, and whether it was jitted.
|
||||
if (isInSyntaxOnlyMode())
|
||||
return 0;
|
||||
llvm::Module* module = getLastTransaction()->getModule();
|
||||
return m_Executor->getAddressOfGlobal(module, SymName, fromJIT);
|
||||
return m_Executor->getAddressOfGlobal(SymName, fromJIT);
|
||||
}
|
||||
|
||||
void Interpreter::AddAtExitFunc(void (*Func) (void*), void* Arg) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user