projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace.
[oota-llvm.git]
/
lib
/
Transforms
/
IPO
/
InlineSimple.cpp
diff --git
a/lib/Transforms/IPO/InlineSimple.cpp
b/lib/Transforms/IPO/InlineSimple.cpp
index 6db4c908b772afd676798c6d0759f12f3f499f97..42897676418fa9d1803f89ebf5bcaa63d91dcd7f 100644
(file)
--- a/
lib/Transforms/IPO/InlineSimple.cpp
+++ b/
lib/Transforms/IPO/InlineSimple.cpp
@@
-65,7
+65,7
@@
bool SimpleInliner::doInitialization(CallGraph &CG) {
for (Module::iterator I = M.begin(), E = M.end();
I != E; ++I)
- if (
I->hasNote(ParamAttr::
FN_NOTE_NoInline))
+ if (
!I->isDeclaration() && I->hasNote(
FN_NOTE_NoInline))
NeverInline.insert(I);
// Get llvm.noinline