mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +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;
|
||||
|
||||
bool MipsCodeEmitter::runOnMachineFunction(MachineFunction &MF) {
|
||||
JTI = const_cast<MipsTargetMachine&>(
|
||||
static_cast<const MipsTargetMachine&>(MF.getTarget())).getJITInfo();
|
||||
II = ((const MipsTargetMachine&) MF.getTarget()).getInstrInfo();
|
||||
TD = ((const MipsTargetMachine&) MF.getTarget()).getDataLayout();
|
||||
MipsTargetMachine &Target = static_cast<MipsTargetMachine &>(
|
||||
const_cast<TargetMachine &>(MF.getTarget()));
|
||||
|
||||
JTI = Target.getJITInfo();
|
||||
II = Target.getInstrInfo();
|
||||
TD = Target.getDataLayout();
|
||||
Subtarget = &TM.getSubtarget<MipsSubtarget> ();
|
||||
MCPEs = &MF.getConstantPool()->getConstants();
|
||||
MJTEs = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user