aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/InlineCost.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-22 22:32:29 +0000
committerDevang Patel <dpatel@apple.com>2008-09-22 22:32:29 +0000
commit0c130eac67fad1c59c8e0c7cc36057e40fa258e6 (patch)
tree5e1aeee0c7c60ca44ec90d45c700e24a14aa2b89 /lib/Transforms/Utils/InlineCost.cpp
parent8aa49e5bcd68381421af4e103c9cf33ca53197dd (diff)
downloadexternal_llvm-0c130eac67fad1c59c8e0c7cc36057e40fa258e6.zip
external_llvm-0c130eac67fad1c59c8e0c7cc36057e40fa258e6.tar.gz
external_llvm-0c130eac67fad1c59c8e0c7cc36057e40fa258e6.tar.bz2
Add hasNote() to check note associated with a function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56477 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 2eaec06..2a39158 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->getNotes() & FN_NOTE_AlwaysInline)
+ if (Callee->hasNote(FN_NOTE_AlwaysInline))
return -2000000000;
// Add to the inline quality for properties that make the call valuable to