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

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 03:33:16 PST 2020


ikudrin created this revision.
ikudrin added reviewers: aprantl, samsonov, bkramer.
ikudrin added projects: debug-info, LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72757

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


Index: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
===================================================================
--- llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
+++ llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
@@ -32,8 +32,7 @@
   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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72757.238211.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200115/4d73a2e3/attachment.bin>


More information about the llvm-commits mailing list