Skip to content

Commit

Permalink
[DebugInfo] Simplify the constructor of DWARFDebugAranges::Range. NFC.
Browse files Browse the repository at this point in the history
This removes the default values of the arguments. The only caller,
DWARFDebugAranges::construct(), provides all three parameters.

Differential Revision: https://reviews.llvm.org/D72757
  • Loading branch information
igorkudrin committed Jan 16, 2020
1 parent 5cf1b01 commit afb22d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ class DWARFDebugAranges {
void construct();

struct Range {
explicit Range(uint64_t LowPC = -1ULL, uint64_t HighPC = -1ULL,
uint64_t CUOffset = -1ULL)
explicit Range(uint64_t LowPC, uint64_t HighPC, uint64_t CUOffset)
: LowPC(LowPC), Length(HighPC - LowPC), CUOffset(CUOffset) {}

void setHighPC(uint64_t HighPC) {
Expand Down

0 comments on commit afb22d7

Please sign in to comment.