[llvm] d7a8135 - DebugInfo: Make DWARFExpression::iterator::skipBytes() const, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 17:33:29 PST 2021
Author: Duncan P. N. Exon Smith
Date: 2021-11-15T17:32:25-08:00
New Revision: d7a81359d781e1aad83f422d18e00c7e97ebb7c6
URL: https://github.com/llvm/llvm-project/commit/d7a81359d781e1aad83f422d18e00c7e97ebb7c6
DIFF: https://github.com/llvm/llvm-project/commit/d7a81359d781e1aad83f422d18e00c7e97ebb7c6.diff
LOG: DebugInfo: Make DWARFExpression::iterator::skipBytes() const, NFC
Given that DWARFExpression::iterator::skipBytes() doesn't change any
state (it returns a new `iterator`), it might as well be
`const`-qualified.
Added:
Modified:
llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
index 1be990692c3c..3dc757ee7b99 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
@@ -132,7 +132,7 @@ class DWARFExpression {
return Op;
}
- iterator skipBytes(uint64_t Add) {
+ iterator skipBytes(uint64_t Add) const {
return iterator(Expr, Op.EndOffset + Add);
}
More information about the llvm-commits
mailing list