StringRef-y.

This commit is contained in:
Vassil Vassilev 2014-03-03 11:48:16 +01:00 committed by sftnight
parent c7503fbe79
commit 8d457e947f
4 changed files with 4 additions and 4 deletions

View File

@ -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*),

View File

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

View File

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

View File

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