summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-26 09:48:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-26 09:48:23 +0000
commit460f656475738d1a95a6be95346908ce1597df25 (patch)
tree7a7ec0dc5ad33115b17ffed8902bf8cb7e5ab289 /lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp
parent4fa4990bdcb1fc2aa7831b1e6b113998366b2918 (diff)
downloadllvm-460f656475738d1a95a6be95346908ce1597df25.tar.gz
llvm-460f656475738d1a95a6be95346908ce1597df25.tar.bz2
llvm-460f656475738d1a95a6be95346908ce1597df25.tar.xz
Remove Value::getName{Start,End}, the last of the old Name APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp')
-rw-r--r--lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp b/lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp
index 80eac87875..fb3d62e7ad 100644
--- a/lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp
+++ b/lib/Transforms/Scalar/SimplifyHalfPowrLibCalls.cpp
@@ -135,8 +135,7 @@ bool SimplifyHalfPowrLibCalls::runOnFunction(Function &F) {
Function *Callee = CI->getCalledFunction();
if (Callee && Callee->hasExternalLinkage()) {
// Look for calls with well-known names.
- const char *CalleeName = Callee->getNameStart();
- if (strcmp(CalleeName, "__half_powrf4") == 0)
+ if (Callee->getName() == "__half_powrf4")
IsHalfPowr = true;
}
}