mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-04 19:17:12 +00:00
Add DEBUG message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -798,9 +798,11 @@ void RAFast::AllocateBasicBlock() {
|
|||||||
setPhysReg(MI, i, LRI->second.PhysReg);
|
setPhysReg(MI, i, LRI->second.PhysReg);
|
||||||
else {
|
else {
|
||||||
int SS = StackSlotForVirtReg[Reg];
|
int SS = StackSlotForVirtReg[Reg];
|
||||||
if (SS == -1)
|
if (SS == -1) {
|
||||||
// We can't allocate a physreg for a DebugValue, sorry!
|
// We can't allocate a physreg for a DebugValue, sorry!
|
||||||
|
DEBUG(dbgs() << "Unable to allocate vreg used by DBG_VALUE");
|
||||||
MO.setReg(0);
|
MO.setReg(0);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
// Modify DBG_VALUE now that the value is in a spill slot.
|
// Modify DBG_VALUE now that the value is in a spill slot.
|
||||||
int64_t Offset = MI->getOperand(1).getImm();
|
int64_t Offset = MI->getOperand(1).getImm();
|
||||||
@@ -817,9 +819,11 @@ void RAFast::AllocateBasicBlock() {
|
|||||||
MI = NewDV;
|
MI = NewDV;
|
||||||
ScanDbgValue = true;
|
ScanDbgValue = true;
|
||||||
break;
|
break;
|
||||||
} else
|
} else {
|
||||||
// We can't allocate a physreg for a DebugValue; sorry!
|
// We can't allocate a physreg for a DebugValue; sorry!
|
||||||
|
DEBUG(dbgs() << "Unable to allocate vreg used by DBG_VALUE");
|
||||||
MO.setReg(0);
|
MO.setReg(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -473,10 +473,18 @@ bool FastISel::SelectCall(const User *I) {
|
|||||||
return true;
|
return true;
|
||||||
const AllocaInst *AI = dyn_cast<AllocaInst>(Address);
|
const AllocaInst *AI = dyn_cast<AllocaInst>(Address);
|
||||||
// Don't handle byval struct arguments or VLAs, for example.
|
// Don't handle byval struct arguments or VLAs, for example.
|
||||||
if (!AI)
|
if (!AI) {
|
||||||
// Building the map above is target independent. Generating DBG_VALUE
|
// Building the map above is target independent. Generating DBG_VALUE
|
||||||
// inline is target dependent; do this now.
|
// inline is target dependent; do this now.
|
||||||
(void)TargetSelectInstruction(cast<Instruction>(I));
|
DenseMap<const Value *, unsigned>::iterator It =
|
||||||
|
FuncInfo.ValueMap.find(Address);
|
||||||
|
if (0 && It != FuncInfo.ValueMap.end()) {
|
||||||
|
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||||
|
TII.get(TargetOpcode::DBG_VALUE))
|
||||||
|
.addReg(It->second, RegState::Debug).addImm(0).addMetadata(DI->getVariable());
|
||||||
|
} else
|
||||||
|
(void)TargetSelectInstruction(cast<Instruction>(I));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case Intrinsic::dbg_value: {
|
case Intrinsic::dbg_value: {
|
||||||
|
Reference in New Issue
Block a user