summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineCost.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 23:55:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 23:55:21 +0000
commite03eecb75f2f56a76cb3c20cb68c5edf358ea409 (patch)
tree8df9abe0205da6cc0a8aa3ecfc022b1eeb210a0e /llvm/lib/Transforms/Utils/InlineCost.cpp
parentea086c72631ad414be00ab049d53fc0e51b67e94 (diff)
downloadbcm5719-llvm-e03eecb75f2f56a76cb3c20cb68c5edf358ea409.tar.gz
bcm5719-llvm-e03eecb75f2f56a76cb3c20cb68c5edf358ea409.zip
Remove Value::{isName, getNameRef}.
Also, change MDString to use a StringRef. llvm-svn: 77098
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineCost.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineCost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineCost.cpp b/llvm/lib/Transforms/Utils/InlineCost.cpp
index 9cd47027631..1a04b96be51 100644
--- a/llvm/lib/Transforms/Utils/InlineCost.cpp
+++ b/llvm/lib/Transforms/Utils/InlineCost.cpp
@@ -125,7 +125,7 @@ void InlineCostAnalyzer::FunctionInfo::analyzeFunction(Function *F) {
// probably won't do this in callers.
if (Function *F = CS.getCalledFunction())
if (F->isDeclaration() &&
- (F->isName("setjmp") || F->isName("_setjmp"))) {
+ (F->getName() == "setjmp" || F->getName() == "_setjmp")) {
NeverInline = true;
return;
}
OpenPOWER on IntegriCloud