mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Revert r218778 while investigating buldbot breakage.
"Move the complex address expression out of DIVariable and into an extra" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -649,18 +649,14 @@ MachineInstr *
|
||||
InstrEmitter::EmitDbgValue(SDDbgValue *SD,
|
||||
DenseMap<SDValue, unsigned> &VRBaseMap) {
|
||||
uint64_t Offset = SD->getOffset();
|
||||
MDNode *Var = SD->getVariable();
|
||||
MDNode *Expr = SD->getExpression();
|
||||
MDNode* MDPtr = SD->getMDPtr();
|
||||
DebugLoc DL = SD->getDebugLoc();
|
||||
|
||||
if (SD->getKind() == SDDbgValue::FRAMEIX) {
|
||||
// Stack address; this needs to be lowered in target-dependent fashion.
|
||||
// EmitTargetCodeForFrameDebugValue is responsible for allocation.
|
||||
return BuildMI(*MF, DL, TII->get(TargetOpcode::DBG_VALUE))
|
||||
.addFrameIndex(SD->getFrameIx())
|
||||
.addImm(Offset)
|
||||
.addMetadata(Var)
|
||||
.addMetadata(Expr);
|
||||
.addFrameIndex(SD->getFrameIx()).addImm(Offset).addMetadata(MDPtr);
|
||||
}
|
||||
// Otherwise, we're going to create an instruction here.
|
||||
const MCInstrDesc &II = TII->get(TargetOpcode::DBG_VALUE);
|
||||
@@ -706,8 +702,7 @@ InstrEmitter::EmitDbgValue(SDDbgValue *SD,
|
||||
MIB.addReg(0U, RegState::Debug);
|
||||
}
|
||||
|
||||
MIB.addMetadata(Var);
|
||||
MIB.addMetadata(Expr);
|
||||
MIB.addMetadata(MDPtr);
|
||||
|
||||
return &*MIB;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user