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:
Daniel Dunbar
2009-07-23 18:52:12 +00:00
parent e6c42dd6d3
commit bc8d813f71
4 changed files with 12 additions and 33 deletions

View File

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