projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove Value::{isName, getNameRef}.
[oota-llvm.git]
/
lib
/
Transforms
/
Utils
/
InlineCost.cpp
diff --git
a/lib/Transforms/Utils/InlineCost.cpp
b/lib/Transforms/Utils/InlineCost.cpp
index 9cd470276317dfb8dc5118e8417fd4a2c6e81926..1a04b96be51415f9c30602f874683122673a2baf 100644
(file)
--- a/
lib/Transforms/Utils/InlineCost.cpp
+++ b/
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;
}