Rename helper functions in DwarfExpression to be less misleading (NFC)

llvm-svn: 298523
This commit is contained in:
Adrian Prantl 2017-03-22 17:19:55 +00:00
parent 29143ec3f7
commit a27198853d
2 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ void DwarfExpression::addReg(int DwarfReg, const char *Comment) {
}
}
void DwarfExpression::addRegIndirect(int DwarfReg, int Offset) {
void DwarfExpression::addBReg(int DwarfReg, int Offset) {
assert(DwarfReg >= 0 && "invalid negative dwarf register number");
if (DwarfReg < 32) {
emitOp(dwarf::DW_OP_breg0 + DwarfReg);
@ -241,7 +241,7 @@ bool DwarfExpression::addMachineRegExpression(const TargetRegisterInfo &TRI,
if (FBReg)
addFBReg(SignedOffset);
else
addRegIndirect(Reg.DwarfRegNo, SignedOffset);
addBReg(Reg.DwarfRegNo, SignedOffset);
ExprCursor.consume(2);
break;
@ -254,7 +254,7 @@ bool DwarfExpression::addMachineRegExpression(const TargetRegisterInfo &TRI,
if (FBReg)
addFBReg(0);
else
addRegIndirect(Reg.DwarfRegNo, 0);
addBReg(Reg.DwarfRegNo, 0);
ExprCursor.take();
break;
}

View File

@ -122,10 +122,10 @@ protected:
/// current function.
virtual bool isFrameRegister(const TargetRegisterInfo &TRI, unsigned MachineReg) = 0;
/// Emit a dwarf register operation.
/// Emit a DW_OP_reg operation.
void addReg(int DwarfReg, const char *Comment = nullptr);
/// Emit an (double-)indirect dwarf register operation.
void addRegIndirect(int DwarfReg, int Offset);
/// Emit a DW_OP_breg operation.
void addBReg(int DwarfReg, int Offset);
/// Emit DW_OP_fbreg <Offset>.
void addFBReg(int Offset);