[RegUsageInfoCollector] Drop unneccesary const_cast. NFC.

llvm-svn: 272509
This commit is contained in:
Benjamin Kramer 2016-06-12 13:32:23 +00:00
parent 9d8bed1796
commit bc2f4fb691
1 changed files with 1 additions and 2 deletions

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()