summaryrefslogtreecommitdiff
path: root/lib/Analysis/LibCallSemantics.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-26 08:34:35 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-26 08:34:35 +0000
commitf0443c1eb44d737d9bd78962932fc80f74c6113c (patch)
treee6509e65f5b9f1349ac35796122422273fbf2d08 /lib/Analysis/LibCallSemantics.cpp
parent92fbbc75889918036035581ef0aa5d6510b2f8d9 (diff)
downloadllvm-f0443c1eb44d737d9bd78962932fc80f74c6113c.tar.gz
llvm-f0443c1eb44d737d9bd78962932fc80f74c6113c.tar.bz2
llvm-f0443c1eb44d737d9bd78962932fc80f74c6113c.tar.xz
Remove Value::getNameLen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LibCallSemantics.cpp')
-rw-r--r--lib/Analysis/LibCallSemantics.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Analysis/LibCallSemantics.cpp b/lib/Analysis/LibCallSemantics.cpp
index 01fe730e63..e0060c3e89 100644
--- a/lib/Analysis/LibCallSemantics.cpp
+++ b/lib/Analysis/LibCallSemantics.cpp
@@ -57,9 +57,6 @@ const LibCallFunctionInfo *LibCallInfo::getFunctionInfo(Function *F) const {
}
// Look up this function in the string map.
- const char *ValueName = F->getNameStart();
- StringMap<const LibCallFunctionInfo*>::iterator I =
- Map->find(StringRef(ValueName, F->getNameLen()));
- return I != Map->end() ? I->second : 0;
+ return Map->lookup(F->getName());
}