forked from OSchip/llvm-project
[RegUsageInfoCollector] Drop unneccesary const_cast. NFC.
llvm-svn: 272509
This commit is contained in:
parent
9d8bed1796
commit
bc2f4fb691
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue