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 | 2c9c3e73682749016d5885b67ff719f634b37d58 (patch) | |
tree | ee745b3e5a1a68cb4e954c3fdfe482b355be0d8f /lib/Transforms/IPO/InlineSimple.cpp | |
parent | e7261863c56240a55c6f57062f0e1e028dc27dba (diff) | |
download | external_llvm-2c9c3e73682749016d5885b67ff719f634b37d58.zip external_llvm-2c9c3e73682749016d5885b67ff719f634b37d58.tar.gz external_llvm-2c9c3e73682749016d5885b67ff719f634b37d58.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/IPO/InlineSimple.cpp')
-rw-r--r-- | lib/Transforms/IPO/InlineSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index b19494a..02cae2a 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -65,7 +65,7 @@ bool SimpleInliner::doInitialization(CallGraph &CG) { for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) - if (!I->isDeclaration() && I->hasNote(Attribute::NoInline)) + if (!I->isDeclaration() && I->hasFnAttr(Attribute::NoInline)) NeverInline.insert(I); // Get llvm.noinline |