Skip to content

Commit 16d4155

Browse files
committed
Rename Offset -> OffsetInBytes
1 parent 39c00c0 commit 16d4155

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

llvm/include/llvm/IR/DebugInfoMetadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,7 @@ class DIExpression : public MDNode {
29892989
///
29902990
/// We don't try very hard to interpret the expression because we assume that
29912991
/// foldConstantMath has canonicalized the expression.
2992-
bool extractLeadingOffset(int64_t &Offset,
2992+
bool extractLeadingOffset(int64_t &OffsetInBytes,
29932993
SmallVectorImpl<uint64_t> &RemainingOps) const;
29942994

29952995
/// Returns true iff this DIExpression contains at least one instance of

llvm/lib/IR/DebugInfoMetadata.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,8 +1761,8 @@ bool DIExpression::extractIfOffset(int64_t &Offset) const {
17611761
}
17621762

17631763
bool DIExpression::extractLeadingOffset(
1764-
int64_t &Offset, SmallVectorImpl<uint64_t> &RemainingOps) const {
1765-
Offset = 0;
1764+
int64_t &OffsetInBytes, SmallVectorImpl<uint64_t> &RemainingOps) const {
1765+
OffsetInBytes = 0;
17661766
RemainingOps.clear();
17671767

17681768
auto SingleLocEltsOpt = getSingleLocationExpressionElements();
@@ -1779,14 +1779,14 @@ bool DIExpression::extractLeadingOffset(
17791779
Op == dwarf::DW_OP_LLVM_extract_bits_sext) {
17801780
break;
17811781
} else if (Op == dwarf::DW_OP_plus_uconst) {
1782-
Offset += ExprOpIt->getArg(0);
1782+
OffsetInBytes += ExprOpIt->getArg(0);
17831783
} else if (Op == dwarf::DW_OP_constu) {
17841784
uint64_t Value = ExprOpIt->getArg(0);
17851785
++ExprOpIt;
17861786
if (ExprOpIt->getOp() == dwarf::DW_OP_plus)
1787-
Offset += Value;
1787+
OffsetInBytes += Value;
17881788
else if (ExprOpIt->getOp() == dwarf::DW_OP_minus)
1789-
Offset -= Value;
1789+
OffsetInBytes -= Value;
17901790
else
17911791
return false;
17921792
} else {

0 commit comments

Comments
 (0)