commit | 0c130eac67fad1c59c8e0c7cc36057e40fa258e6 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Mon Sep 22 22:32:29 2008 +0000 |
committer | Devang Patel <dpatel@apple.com> | Mon Sep 22 22:32:29 2008 +0000 |
tree | 5e1aeee0c7c60ca44ec90d45c700e24a14aa2b89 | |
parent | 8aa49e5bcd68381421af4e103c9cf33ca53197dd [diff] [blame] |
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
diff --git a/lib/Transforms/IPO/InlineAlways.cpp b/lib/Transforms/IPO/InlineAlways.cpp index 5568937..ddcc79c 100644 --- a/lib/Transforms/IPO/InlineAlways.cpp +++ b/lib/Transforms/IPO/InlineAlways.cpp
@@ -63,7 +63,7 @@ for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) - if (!I->isDeclaration() && I->getNotes() != FN_NOTE_AlwaysInline) + if (!I->isDeclaration() && !I->hasNote(FN_NOTE_AlwaysInline)) NeverInline.insert(I); return false;