Remove extraneous parens and extraneous const cast (and fix the

prototype for the function to patch what we were returning).

llvm-svn: 211837
This commit is contained in:
Eric Christopher 2014-06-27 01:27:03 +00:00
parent e0bc241533
commit 9095101a3e

View File

@ -59,11 +59,11 @@ public:
const NVPTXSubtarget *getSubtargetImpl() const override { return &Subtarget; }
const NVPTXRegisterInfo *getRegisterInfo() const override {
return &(InstrInfo.getRegisterInfo());
return &InstrInfo.getRegisterInfo();
}
NVPTXTargetLowering *getTargetLowering() const override {
return const_cast<NVPTXTargetLowering *>(&TLInfo);
const NVPTXTargetLowering *getTargetLowering() const override {
return &TLInfo;
}
const TargetSelectionDAGInfo *getSelectionDAGInfo() const override {