Move the subtarget dependent features from XCoreTargetMachine
[oota-llvm.git] / lib / Target / XCore / XCoreISelLowering.h
index 81d91875100b08f079ccc6268f6f1105f8700d7c..62b89c348dc7a10f8868fcf47c6bf65f8551d6c0 100644 (file)
@@ -94,7 +94,7 @@ namespace llvm {
   {
   public:
 
-    explicit XCoreTargetLowering(XCoreTargetMachine &TM);
+    explicit XCoreTargetLowering(const TargetMachine &TM);
 
     using TargetLowering::isZExtFree;
     bool isZExtFree(SDValue Val, EVT VT2) const override;
@@ -123,7 +123,7 @@ namespace llvm {
     bool isLegalAddressingMode(const AddrMode &AM, Type *Ty) const override;
 
   private:
-    const XCoreTargetMachine &TM;
+    const TargetMachine &TM;
     const XCoreSubtarget &Subtarget;
 
     // Lower Operand helpers