[llvm] afb22d7 - [DebugInfo] Simplify the constructor of DWARFDebugAranges::Range. NFC.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 22:09:36 PST 2020


Author: Igor Kudrin
Date: 2020-01-16T13:08:30+07:00
New Revision: afb22d7c33a246967d5f21d5ab3c83c148178564

URL: https://github.com/llvm/llvm-project/commit/afb22d7c33a246967d5f21d5ab3c83c148178564
DIFF: https://github.com/llvm/llvm-project/commit/afb22d7c33a246967d5f21d5ab3c83c148178564.diff

LOG: [DebugInfo] Simplify the constructor of DWARFDebugAranges::Range. NFC.

This removes the default values of the arguments. The only caller,
DWARFDebugAranges::construct(), provides all three parameters.

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
index 89b15d263580..ceed50d331aa 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
@@ -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) {


        


More information about the llvm-commits mailing list