summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/Inliner.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-27 04:32:07 +0000
committerChris Lattner <sabre@nondot.org>2009-08-27 04:32:07 +0000
commit12f0babca4459c253675700e1d707652d5b6ba17 (patch)
tree96da1400e98eaf2e60df58d2cc92be1f117ee7d9 /lib/Transforms/IPO/Inliner.cpp
parent8f2718fbef6177966ff807af0732eb2431bd9a5f (diff)
downloadllvm-12f0babca4459c253675700e1d707652d5b6ba17.tar.gz
llvm-12f0babca4459c253675700e1d707652d5b6ba17.tar.bz2
llvm-12f0babca4459c253675700e1d707652d5b6ba17.tar.xz
reduce header #include'age
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/Inliner.cpp')
-rw-r--r--lib/Transforms/IPO/Inliner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index af7270a048..965849cc4f 100644
--- a/lib/Transforms/IPO/Inliner.cpp
+++ b/lib/Transforms/IPO/Inliner.cpp
@@ -21,10 +21,12 @@
#include "llvm/Support/CallSite.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/IPO/InlinerPass.h"
+#include "llvm/Transforms/Utils/InlineCost.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include <set>
using namespace llvm;
@@ -57,7 +59,8 @@ bool Inliner::InlineCallIfPossible(CallSite CS, CallGraph &CG,
Function *Callee = CS.getCalledFunction();
Function *Caller = CS.getCaller();
- if (!InlineFunction(CS, &CG, TD)) return false;
+ if (!InlineFunction(CS, &CG, TD))
+ return false;
// If the inlined function had a higher stack protection level than the
// calling function, then bump up the caller's stack protection level.