diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 23:55:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 23:55:21 +0000 |
commit | e03eecb75f2f56a76cb3c20cb68c5edf358ea409 (patch) | |
tree | 8df9abe0205da6cc0a8aa3ecfc022b1eeb210a0e /llvm/lib/Transforms/Utils/InlineCost.cpp | |
parent | ea086c72631ad414be00ab049d53fc0e51b67e94 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |