mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Add a DebugLoc argument to TargetInstrInfo::copyRegToReg, so that it
doesn't have to guess. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -218,7 +218,8 @@ static void EmitLiveInCopy(MachineBasicBlock *MBB,
|
||||
--Pos;
|
||||
}
|
||||
|
||||
bool Emitted = TII.copyRegToReg(*MBB, Pos, VirtReg, PhysReg, RC, RC);
|
||||
bool Emitted = TII.copyRegToReg(*MBB, Pos, VirtReg, PhysReg, RC, RC,
|
||||
DebugLoc());
|
||||
assert(Emitted && "Unable to issue a live-in copy instruction!\n");
|
||||
(void) Emitted;
|
||||
|
||||
@@ -253,7 +254,8 @@ MachineRegisterInfo::EmitLiveInCopies(MachineBasicBlock *EntryMBB,
|
||||
if (LI->second) {
|
||||
const TargetRegisterClass *RC = getRegClass(LI->second);
|
||||
bool Emitted = TII.copyRegToReg(*EntryMBB, EntryMBB->begin(),
|
||||
LI->second, LI->first, RC, RC);
|
||||
LI->second, LI->first, RC, RC,
|
||||
DebugLoc());
|
||||
assert(Emitted && "Unable to issue a live-in copy instruction!\n");
|
||||
(void) Emitted;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user