mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 21:20:29 +00:00
[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:
parent
e4f64b2456
commit
de9d1e0d13
@ -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
Block a user