[PATCH] D27961: Rearrange DWARFDebugLine::Row fields for smaller struct size

Eric Christopher via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 18:45:24 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL290931: On a 64-bit system, the DWARFDebugLine::Row struct is 32 bytes. Each field has… (authored by echristo).

Changed prior to commit:
  https://reviews.llvm.org/D27961?vs=82044&id=82990#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27961

Files:
  llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h


Index: llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
===================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
+++ llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
@@ -116,12 +116,12 @@
     // An unsigned integer indicating the identity of the source file
     // corresponding to a machine instruction.
     uint16_t File;
-    // An unsigned integer whose value encodes the applicable instruction set
-    // architecture for the current instruction.
-    uint8_t Isa;
     // An unsigned integer representing the DWARF path discriminator value
     // for this location.
     uint32_t Discriminator;
+    // An unsigned integer whose value encodes the applicable instruction set
+    // architecture for the current instruction.
+    uint8_t Isa;
     // A boolean indicating that the current instruction is the beginning of a
     // statement.
     uint8_t IsStmt:1,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27961.82990.patch
Type: text/x-patch
Size: 963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/0922337f/attachment.bin>


More information about the llvm-commits mailing list