mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Update this a bit more to represent how the prologue should work:
a) frame setup instructions define the prologue b) we shouldn't change our location mid-stream Add a test to make sure that the stack adjustment stays within the prologue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1355,9 +1355,10 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
||||
if (!MI->isLabel())
|
||||
AtBlockEntry = false;
|
||||
|
||||
// First known non DBG_VALUE location marks beginning of function
|
||||
// body.
|
||||
if (PrologEndLoc.isUnknown() && !MI->getDebugLoc().isUnknown())
|
||||
// First known non-DBG_VALUE and non-frame setup location marks
|
||||
// the beginning of the function body.
|
||||
if (!MI->getFlag(MachineInstr::FrameSetup) &&
|
||||
(PrologEndLoc.isUnknown() && !MI->getDebugLoc().isUnknown()))
|
||||
PrologEndLoc = MI->getDebugLoc();
|
||||
|
||||
// Check if the instruction clobbers any registers with debug vars.
|
||||
|
||||
Reference in New Issue
Block a user