StringRef-y.
This commit is contained in:
parent
c7503fbe79
commit
8d457e947f
@ -586,7 +586,7 @@ namespace cling {
|
||||
///\param[in] SymName - the name of the global to search
|
||||
///\param[out] fromJIT - whether the symbol was JITted.
|
||||
///
|
||||
void* getAddressOfGlobal(const char* SymName, bool* fromJIT = 0) const;
|
||||
void* getAddressOfGlobal(llvm::StringRef SymName, bool* fromJIT = 0) const;
|
||||
|
||||
friend class runtime::internal::LifetimeHandler;
|
||||
friend int runtime::internal::local_cxa_atexit(void (*func) (void*),
|
||||
|
@ -340,7 +340,7 @@ IncrementalExecutor::addSymbol(const char* symbolName, void* symbolAddress) {
|
||||
}
|
||||
|
||||
void* IncrementalExecutor::getAddressOfGlobal(llvm::Module* m,
|
||||
const char* symbolName,
|
||||
llvm::StringRef symbolName,
|
||||
bool* fromJIT /*=0*/) const {
|
||||
// Return a symbol's address, and whether it was jitted.
|
||||
void* address
|
||||
|
@ -167,7 +167,7 @@ namespace cling {
|
||||
///\param[in] mangledName - the globa's name
|
||||
///\param[out] fromJIT - whether the symbol was JITted.
|
||||
///
|
||||
void* getAddressOfGlobal(llvm::Module* m, const char* mangledName,
|
||||
void* getAddressOfGlobal(llvm::Module* m, llvm::StringRef mangledName,
|
||||
bool* fromJIT = 0) const;
|
||||
|
||||
///\brief Return the address of a global from the ExecutionEngine (as
|
||||
|
@ -1071,7 +1071,7 @@ namespace cling {
|
||||
return getAddressOfGlobal(mangledName.c_str(), fromJIT);
|
||||
}
|
||||
|
||||
void* Interpreter::getAddressOfGlobal(const char* SymName,
|
||||
void* Interpreter::getAddressOfGlobal(llvm::StringRef SymName,
|
||||
bool* fromJIT /*=0*/) const {
|
||||
// Return a symbol's address, and whether it was jitted.
|
||||
llvm::Module* module = m_IncrParser->getCodeGenerator()->GetModule();
|
||||
|
Loading…
Reference in New Issue
Block a user