diff options
| author | Devang Patel <dpatel@apple.com> | 2008-09-26 23:51:19 +0000 | 
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-09-26 23:51:19 +0000 | 
| commit | 9eb525d4f9f12f266e18bf659c876bda59738807 (patch) | |
| tree | c66f9b5510c21a7eb5e4b3d65b036651bbbca3bb /llvm/lib/Transforms/Utils | |
| parent | c4b02eb4e5aa028ddb6c45e4779555934ccdace8 (diff) | |
| download | bcm5719-llvm-9eb525d4f9f12f266e18bf659c876bda59738807.tar.gz bcm5719-llvm-9eb525d4f9f12f266e18bf659c876bda59738807.zip | |
Implement function notes as function attributes. 
llvm-svn: 56716
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/InlineCost.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Utils/InlineCost.cpp b/llvm/lib/Transforms/Utils/InlineCost.cpp index 55755c1995e..d0b51855d9c 100644 --- a/llvm/lib/Transforms/Utils/InlineCost.cpp +++ b/llvm/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 | 

