Remove extraneous parens and extraneous const cast (and fix the

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2014-06-27 01:27:03 +00:00
parent 66537f684b
commit e6b542dd2e

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 {