aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-26 23:51:19 +0000
committerDevang Patel <dpatel@apple.com>2008-09-26 23:51:19 +0000
commit008cd3ecea2958540d8d8f5370deffb6103c6758 (patch)
treeee745b3e5a1a68cb4e954c3fdfe482b355be0d8f /lib/Transforms/Utils
parent38ee4100731aacc8b51455c0fd4df7daa0855d73 (diff)
downloadexternal_llvm-008cd3ecea2958540d8d8f5370deffb6103c6758.zip
external_llvm-008cd3ecea2958540d8d8f5370deffb6103c6758.tar.gz
external_llvm-008cd3ecea2958540d8d8f5370deffb6103c6758.tar.bz2
Implement function notes as function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-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 55755c1..d0b5185 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(Attribute::AlwaysInline))
+ if (!Callee->isDeclaration() && Callee->hasFnAttr(Attribute::AlwaysInline))
return -2000000000;
// Add to the inline quality for properties that make the call valuable to