Remove Value::{isName, getNameRef}.
[oota-llvm.git] / lib / Transforms / Utils / InlineCost.cpp
index 9cd470276317dfb8dc5118e8417fd4a2c6e81926..1a04b96be51415f9c30602f874683122673a2baf 100644 (file)
@@ -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;
           }