[PATCH] D26013: Change DWARF parser to use enumerations for DWARF tags, attributes and forms.

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 26 14:54:12 PDT 2016


clayborg created this revision.
clayborg added reviewers: echristo, aprantl, friss, dblaikie, llvm-commits.
clayborg set the repository for this revision to rL LLVM.
Herald added a subscriber: mehdi_amini.

To improve our ability to debug DWARF code I propose that we switch all variables for tags, attributes and forms over to use the llvm::dwarf enumerations instead of using uint16_t values. This allows easier debugging as users can see the values of the enumerations in the variables view that will show the enumeration string instead of just a number.


Repository:
  rL LLVM

https://reviews.llvm.org/D26013

Files:
  include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
  include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
  include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h
  include/llvm/DebugInfo/DWARF/DWARFFormValue.h
  include/llvm/Support/Dwarf.def
  lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
  lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
  lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
  lib/DebugInfo/DWARF/DWARFFormValue.cpp
  tools/llvm-dwp/llvm-dwp.cpp
  unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26013.75952.patch
Type: text/x-patch
Size: 18581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161026/173d3e0c/attachment.bin>


More information about the llvm-commits mailing list