mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Switch ValueSymbolTable to StringRef based API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -118,7 +118,7 @@ GlobalValue *Module::getNamedValue(const std::string &Name) const {
|
||||
}
|
||||
|
||||
GlobalValue *Module::getNamedValue(const char *Name) const {
|
||||
llvm::Value *V = getValueSymbolTable().lookup(Name, Name+strlen(Name));
|
||||
llvm::Value *V = getValueSymbolTable().lookup(Name);
|
||||
return cast_or_null<GlobalValue>(V);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user