mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Remove the unused DBG_VALUE offset parameter from GlobalISel (NFC)
Followup to r309426. rdar://problem/33580047 llvm-svn: 309449
This commit is contained in:
parent
296b3499de
commit
1c37ba22bc
@ -174,11 +174,12 @@ public:
|
||||
const MDNode *Expr);
|
||||
|
||||
/// Build and insert a DBG_VALUE instruction expressing the fact that the
|
||||
/// associated \p Variable lives in memory at \p Reg + \p Offset (suitably
|
||||
/// modified by \p Expr).
|
||||
MachineInstrBuilder buildIndirectDbgValue(unsigned Reg, unsigned Offset,
|
||||
/// associated \p Variable lives in memory at \p Reg (suitably modified by \p
|
||||
/// Expr).
|
||||
MachineInstrBuilder buildIndirectDbgValue(unsigned Reg,
|
||||
const MDNode *Variable,
|
||||
const MDNode *Expr);
|
||||
|
||||
/// Build and insert a DBG_VALUE instruction expressing the fact that the
|
||||
/// associated \p Variable lives in the stack slot specified by \p FI
|
||||
/// (suitably modified by \p Expr).
|
||||
@ -187,7 +188,7 @@ public:
|
||||
|
||||
/// Build and insert a DBG_VALUE instructions specifying that \p Variable is
|
||||
/// given by \p C (suitably modified by \p Expr).
|
||||
MachineInstrBuilder buildConstDbgValue(const Constant &C, unsigned Offset,
|
||||
MachineInstrBuilder buildConstDbgValue(const Constant &C,
|
||||
const MDNode *Variable,
|
||||
const MDNode *Expr);
|
||||
|
||||
|
@ -682,11 +682,9 @@ bool IRTranslator::translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID,
|
||||
if (!V) {
|
||||
// Currently the optimizer can produce this; insert an undef to
|
||||
// help debugging. Probably the optimizer should not do this.
|
||||
MIRBuilder.buildIndirectDbgValue(0, 0, DI.getVariable(),
|
||||
DI.getExpression());
|
||||
MIRBuilder.buildIndirectDbgValue(0, DI.getVariable(), DI.getExpression());
|
||||
} else if (const auto *CI = dyn_cast<Constant>(V)) {
|
||||
MIRBuilder.buildConstDbgValue(*CI, 0, DI.getVariable(),
|
||||
DI.getExpression());
|
||||
MIRBuilder.buildConstDbgValue(*CI, DI.getVariable(), DI.getExpression());
|
||||
} else {
|
||||
unsigned Reg = getOrCreateVReg(*V);
|
||||
// FIXME: This does not handle register-indirect values at offset 0. The
|
||||
|
@ -96,15 +96,16 @@ MachineInstrBuilder MachineIRBuilder::buildDirectDbgValue(
|
||||
.addMetadata(Expr);
|
||||
}
|
||||
|
||||
MachineInstrBuilder MachineIRBuilder::buildIndirectDbgValue(
|
||||
unsigned Reg, unsigned Offset, const MDNode *Variable, const MDNode *Expr) {
|
||||
MachineInstrBuilder
|
||||
MachineIRBuilder::buildIndirectDbgValue(unsigned Reg, const MDNode *Variable,
|
||||
const MDNode *Expr) {
|
||||
assert(isa<DILocalVariable>(Variable) && "not a variable");
|
||||
assert(cast<DIExpression>(Expr)->isValid() && "not an expression");
|
||||
assert(cast<DILocalVariable>(Variable)->isValidLocationForIntrinsic(DL) &&
|
||||
"Expected inlined-at fields to agree");
|
||||
return buildInstr(TargetOpcode::DBG_VALUE)
|
||||
.addReg(Reg, RegState::Debug)
|
||||
.addImm(Offset)
|
||||
.addImm(0)
|
||||
.addMetadata(Variable)
|
||||
.addMetadata(Expr);
|
||||
}
|
||||
@ -124,7 +125,6 @@ MachineInstrBuilder MachineIRBuilder::buildFIDbgValue(int FI,
|
||||
}
|
||||
|
||||
MachineInstrBuilder MachineIRBuilder::buildConstDbgValue(const Constant &C,
|
||||
unsigned Offset,
|
||||
const MDNode *Variable,
|
||||
const MDNode *Expr) {
|
||||
assert(isa<DILocalVariable>(Variable) && "not a variable");
|
||||
@ -144,7 +144,7 @@ MachineInstrBuilder MachineIRBuilder::buildConstDbgValue(const Constant &C,
|
||||
MIB.addReg(0U);
|
||||
}
|
||||
|
||||
return MIB.addImm(Offset).addMetadata(Variable).addMetadata(Expr);
|
||||
return MIB.addImm(0).addMetadata(Variable).addMetadata(Expr);
|
||||
}
|
||||
|
||||
MachineInstrBuilder MachineIRBuilder::buildFrameIndex(unsigned Res, int Idx) {
|
||||
|
Loading…
Reference in New Issue
Block a user