mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Keep track of incoming argument's location while emitting LiveIns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -396,7 +396,8 @@ void MachineFunction::viewCFGOnly() const
|
||||
/// addLiveIn - Add the specified physical register as a live-in value and
|
||||
/// create a corresponding virtual register for it.
|
||||
unsigned MachineFunction::addLiveIn(unsigned PReg,
|
||||
const TargetRegisterClass *RC) {
|
||||
const TargetRegisterClass *RC,
|
||||
DebugLoc DL) {
|
||||
MachineRegisterInfo &MRI = getRegInfo();
|
||||
unsigned VReg = MRI.getLiveInVirtReg(PReg);
|
||||
if (VReg) {
|
||||
@ -405,6 +406,7 @@ unsigned MachineFunction::addLiveIn(unsigned PReg,
|
||||
}
|
||||
VReg = MRI.createVirtualRegister(RC);
|
||||
MRI.addLiveIn(PReg, VReg);
|
||||
MRI.addLiveInLoc(VReg, DL);
|
||||
return VReg;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user