aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/Inliner.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
commitf3ba70861ccf00b1072ae1b6ade3ebe2da6cff40 (patch)
tree5e1aeee0c7c60ca44ec90d45c700e24a14aa2b89 /lib/Transforms/IPO/Inliner.cpp
parentef901c57563eb841ac86648d533272776706cb64 (diff)
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/IPO/Inliner.cpp')
-rw-r--r--lib/Transforms/IPO/Inliner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index d9609489a9..447bd6fb7d 100644
--- a/lib/Transforms/IPO/Inliner.cpp
+++ b/lib/Transforms/IPO/Inliner.cpp
@@ -141,7 +141,7 @@ bool Inliner::runOnSCC(const std::vector<CallGraphNode*> &SCC) {
int CurrentThreshold = InlineThreshold;
Function *Fn = CS.getCaller();
- if (Fn && (Fn->getNotes() & FN_NOTE_OptimizeForSize)
+ if (Fn && Fn->hasNote(FN_NOTE_OptimizeForSize)
&& InlineThreshold != 50) {
CurrentThreshold = 50;
}