diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-27 00:37:59 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-27 00:37:59 +0000 |
commit | 4da3ba8c2ebe70c16342f90797830931275b2ad7 (patch) | |
tree | 8f52482bcf237278bae973e07fe5f81476727828 /lib/Target/MSP430/MSP430ISelLowering.h | |
parent | 9fe7eae0866080ea236a63d5358fad036350ecfd (diff) | |
download | llvm-4da3ba8c2ebe70c16342f90797830931275b2ad7.tar.gz llvm-4da3ba8c2ebe70c16342f90797830931275b2ad7.tar.bz2 llvm-4da3ba8c2ebe70c16342f90797830931275b2ad7.tar.xz |
Remove unnecessary caching of variables by MSP430TargetLowering and
make the constructor more general since it only needs a target
machine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430ISelLowering.h')
-rw-r--r-- | lib/Target/MSP430/MSP430ISelLowering.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.h b/lib/Target/MSP430/MSP430ISelLowering.h index 3ced61de3f..3e2f344aeb 100644 --- a/lib/Target/MSP430/MSP430ISelLowering.h +++ b/lib/Target/MSP430/MSP430ISelLowering.h @@ -66,12 +66,9 @@ namespace llvm { }; } - class MSP430Subtarget; - class MSP430TargetMachine; - class MSP430TargetLowering : public TargetLowering { public: - explicit MSP430TargetLowering(MSP430TargetMachine &TM); + explicit MSP430TargetLowering(const TargetMachine &TM); MVT getScalarShiftAmountTy(EVT LHSTy) const override { return MVT::i8; } @@ -170,9 +167,6 @@ namespace llvm { SDValue &Offset, ISD::MemIndexedMode &AM, SelectionDAG &DAG) const override; - - const MSP430Subtarget &Subtarget; - const DataLayout *TD; }; } // namespace llvm |