Move PPCInstrInfo off of the target machine and onto the subtarget.
llvm-svn: 210839
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index 55145d3..9d4c264 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -15,6 +15,7 @@
#define POWERPCSUBTARGET_H
#include "PPCFrameLowering.h"
+#include "PPCInstrInfo.h"
#include "llvm/ADT/Triple.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/MC/MCInstrItineraries.h"
@@ -106,6 +107,7 @@
PPCFrameLowering FrameLowering;
const DataLayout DL;
+ PPCInstrInfo InstrInfo;
public:
/// This constructor initializes the data members to match that
@@ -138,6 +140,7 @@
const PPCFrameLowering *getFrameLowering() const { return &FrameLowering; }
const DataLayout *getDataLayout() const { return &DL; }
+ const PPCInstrInfo *getInstrInfo() const { return &InstrInfo; }
/// initializeSubtargetDependencies - Initializes using a CPU and feature string
/// so that we can use initializer lists for subtarget initialization.