aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-23 18:52:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-23 18:52:12 +0000
commitbc8d813f715e47afd27b73b0b7abd00978e0ba51 (patch)
tree02aaed474e034e9d1331d646fe672ff232acbca6 /lib/VMCore/Module.cpp
parente6c42dd6d3cc1e0a8a11224a11bcfbd8c60c6fff (diff)
downloadexternal_llvm-bc8d813f715e47afd27b73b0b7abd00978e0ba51.zip
external_llvm-bc8d813f715e47afd27b73b0b7abd00978e0ba51.tar.gz
external_llvm-bc8d813f715e47afd27b73b0b7abd00978e0ba51.tar.bz2
Switch ValueSymbolTable to StringRef based API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r--lib/VMCore/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index 4daa92d..9e6e31a 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -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);
}