[RegUsageInfoCollector] Drop unneccesary const_cast. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2016-06-12 13:32:23 +00:00
parent e4f64b2456
commit de9d1e0d13

View File

@ -86,8 +86,7 @@ void RegUsageInfoCollector::getAnalysisUsage(AnalysisUsage &AU) const {
bool RegUsageInfoCollector::runOnMachineFunction(MachineFunction &MF) {
MachineRegisterInfo *MRI = &MF.getRegInfo();
TargetRegisterInfo *TRI =
const_cast<TargetRegisterInfo *>(MF.getSubtarget().getRegisterInfo());
const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
const TargetMachine &TM = MF.getTarget();
DEBUG(dbgs() << " -------------------- " << getPassName()