mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Adjust to new TargetMachine interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -159,7 +159,7 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
// a preliminary pass that will invalidate any registers that
|
||||
// are used by the instruction (including implicit uses)
|
||||
unsigned Opcode = MI->getOpcode();
|
||||
const TargetInstrDescriptor &Desc = TM->getInstrInfo().get(Opcode);
|
||||
const TargetInstrDescriptor &Desc = TM->getInstrInfo()->get(Opcode);
|
||||
const unsigned *Regs = Desc.ImplicitUses;
|
||||
while (*Regs)
|
||||
RegsUsed[*Regs++] = true;
|
||||
@ -184,7 +184,7 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
unsigned physReg = Virt2PhysRegMap[virtualReg];
|
||||
if (physReg == 0) {
|
||||
if (op.isDef()) {
|
||||
if (!TM->getInstrInfo().isTwoAddrInstr(MI->getOpcode()) || i) {
|
||||
if (!TM->getInstrInfo()->isTwoAddrInstr(MI->getOpcode()) || i) {
|
||||
physReg = getFreeReg(virtualReg);
|
||||
} else {
|
||||
// must be same register number as the first operand
|
||||
|
Reference in New Issue
Block a user