mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user