mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Revert r124611 - "Keep track of incoming argument's location while emitting LiveIns."
In other words, do not keep track of argument's location. The debugger (gdb) is not prepared to see line table entries for arguments. For the debugger, "second" line table entry marks beginning of function body. This requires some coordination with debugger to get this working. - The debugger needs to be aware of prolog_end attribute attached with line table entries. - The compiler needs to accurately mark prolog_end in line table entries (at -O0 and at -O1+) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -396,8 +396,7 @@ 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,
|
||||
DebugLoc DL) {
|
||||
const TargetRegisterClass *RC) {
|
||||
MachineRegisterInfo &MRI = getRegInfo();
|
||||
unsigned VReg = MRI.getLiveInVirtReg(PReg);
|
||||
if (VReg) {
|
||||
@ -406,7 +405,6 @@ 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