diff options
| author | Devang Patel <dpatel@apple.com> | 2008-09-24 00:06:15 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-09-24 00:06:15 +0000 |
| commit | dc1611f62dc62d4c9cf5d906ed314e6e2c00969a (patch) | |
| tree | d99b92af998a00799cf14a07d6040b5654b60cbe /lib/Transforms/Utils | |
| parent | 7f250d639b8fba12b89199b92dcef45d7354b202 (diff) | |
| download | external_llvm-dc1611f62dc62d4c9cf5d906ed314e6e2c00969a.zip external_llvm-dc1611f62dc62d4c9cf5d906ed314e6e2c00969a.tar.gz external_llvm-dc1611f62dc62d4c9cf5d906ed314e6e2c00969a.tar.bz2 | |
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')
| -rw-r--r-- | lib/Transforms/Utils/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp index 6ecd060..c35af25 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 |
