[DebugInfo] Simplify the constructor of DWARFDebugAranges::Range. NFC.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Wed, 15 Jan 2020 11:17:07 +0000 (18:17 +0700)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 16 Jan 2020 06:08:30 +0000 (13:08 +0700)
This removes the default values of the arguments. The only caller,
DWARFDebugAranges::construct(), provides all three parameters.

Differential Revision: https://reviews.llvm.org/D72757

llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h

index 89b15d2..ceed50d 100644 (file)
@@ -32,8 +32,7 @@ private:
   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) {