mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Improve r172471: avoid all those extra casts on the lines nearby
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89e88e30bf
commit
953cbfcd26
@ -120,10 +120,12 @@ class MipsCodeEmitter : public MachineFunctionPass {
|
|||||||
char MipsCodeEmitter::ID = 0;
|
char MipsCodeEmitter::ID = 0;
|
||||||
|
|
||||||
bool MipsCodeEmitter::runOnMachineFunction(MachineFunction &MF) {
|
bool MipsCodeEmitter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
JTI = const_cast<MipsTargetMachine&>(
|
MipsTargetMachine &Target = static_cast<MipsTargetMachine &>(
|
||||||
static_cast<const MipsTargetMachine&>(MF.getTarget())).getJITInfo();
|
const_cast<TargetMachine &>(MF.getTarget()));
|
||||||
II = ((const MipsTargetMachine&) MF.getTarget()).getInstrInfo();
|
|
||||||
TD = ((const MipsTargetMachine&) MF.getTarget()).getDataLayout();
|
JTI = Target.getJITInfo();
|
||||||
|
II = Target.getInstrInfo();
|
||||||
|
TD = Target.getDataLayout();
|
||||||
Subtarget = &TM.getSubtarget<MipsSubtarget> ();
|
Subtarget = &TM.getSubtarget<MipsSubtarget> ();
|
||||||
MCPEs = &MF.getConstantPool()->getConstants();
|
MCPEs = &MF.getConstantPool()->getConstants();
|
||||||
MJTEs = 0;
|
MJTEs = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user