summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-13 22:38:52 +0000
committerEric Christopher <echristo@gmail.com>2014-06-13 22:38:52 +0000
commit7354a3fe576b34919b0752306fd1b382f879a115 (patch)
tree7ac2cfb092b3e6b2e884301393bf041be1a2147f /include
parent0cf109de5469b36deac4d1d70e4f7269b2afcca5 (diff)
downloadllvm-7354a3fe576b34919b0752306fd1b382f879a115.tar.gz
llvm-7354a3fe576b34919b0752306fd1b382f879a115.tar.bz2
llvm-7354a3fe576b34919b0752306fd1b382f879a115.tar.xz
The hazard recognizer only needs a subtarget, not a target machine
so make it take one. Fix up all users accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 80ddb920d4..87e7c14ac1 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -37,6 +37,7 @@ class ScheduleDAG;
class TargetRegisterClass;
class TargetRegisterInfo;
class BranchProbability;
+class TargetSubtargetInfo;
template<class T> class SmallVectorImpl;
@@ -743,7 +744,7 @@ public:
/// use for this target when scheduling the machine instructions before
/// register allocation.
virtual ScheduleHazardRecognizer*
- CreateTargetHazardRecognizer(const TargetMachine *TM,
+ CreateTargetHazardRecognizer(const TargetSubtargetInfo *STI,
const ScheduleDAG *DAG) const;
/// CreateTargetMIHazardRecognizer - Allocate and return a hazard recognizer