aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-24 18:13:53 +0000
committerDan Gohman <gohman@apple.com>2009-07-24 18:13:53 +0000
commit02a436c48ecff9e34d50ce0a2f861e5acdd9bf3f (patch)
tree1391c877e3f025721f7458adab62a96758eff919 /include/llvm/Transforms
parent6b118a2122f8f7da954fbfbcdec05c331e3fd625 (diff)
downloadexternal_llvm-02a436c48ecff9e34d50ce0a2f861e5acdd9bf3f.zip
external_llvm-02a436c48ecff9e34d50ce0a2f861e5acdd9bf3f.tar.gz
external_llvm-02a436c48ecff9e34d50ce0a2f861e5acdd9bf3f.tar.bz2
Convert several more passes to use getAnalysisIfAvailable<TargetData>()
instead of getAnalysis<TargetData>(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO/InlinerPass.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h
index b370e96..e8a8694 100644
--- a/include/llvm/Transforms/IPO/InlinerPass.h
+++ b/include/llvm/Transforms/IPO/InlinerPass.h
@@ -19,11 +19,11 @@
#include "llvm/CallGraphSCCPass.h"
#include "llvm/Transforms/Utils/InlineCost.h"
-#include "llvm/Target/TargetData.h"
namespace llvm {
class CallSite;
+ class TargetData;
/// Inliner - This class contains all of the helper code which is used to
/// perform the inlining operations that do not depend on the policy.
@@ -48,7 +48,7 @@ struct Inliner : public CallGraphSCCPass {
// InlineCallIfPossible
bool InlineCallIfPossible(CallSite CS, CallGraph &CG,
const SmallPtrSet<Function*, 8> &SCCFunctions,
- const TargetData &TD);
+ const TargetData *TD);
/// This method returns the value specified by the -inline-threshold value,
/// specified on the command line. This is typically not directly needed.