Simplify interface: no need for the llvm::Module.

This commit is contained in:
Axel Naumann 2015-01-12 09:57:30 +01:00 committed by sftnight
parent 14a75773d6
commit 9c2d9fb700
3 changed files with 3 additions and 6 deletions

View File

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

View File

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

View File

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