aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/InlineCost.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-24 00:06:15 +0000
committerDevang Patel <dpatel@apple.com>2008-09-24 00:06:15 +0000
commit20bcaff6a7f93a9894f7233c449b016bafe93b26 (patch)
treed99b92af998a00799cf14a07d6040b5654b60cbe /lib/Transforms/Utils/InlineCost.cpp
parentda43bcf624acb56a3d77bb5ae9a02728af032613 (diff)
Put FN_NOTE_AlwaysInline and others in FnAttr namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineCost.cpp')
-rw-r--r--lib/Transforms/Utils/InlineCost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp
index 6ecd060991..c35af251b2 100644
--- a/lib/Transforms/Utils/InlineCost.cpp
+++ b/lib/Transforms/Utils/InlineCost.cpp
@@ -222,7 +222,7 @@ int InlineCostAnalyzer::getInlineCost(CallSite CS,
if (CalleeFI.NeverInline)
return 2000000000;
- if (!Callee->isDeclaration() && Callee->hasNote(FN_NOTE_AlwaysInline))
+ if (!Callee->isDeclaration() && Callee->hasNote(FnAttr::AlwaysInline))
return -2000000000;
// Add to the inline quality for properties that make the call valuable to