[PATCH] D44418: DWARF: Unify form size handling code

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 04:44:44 PDT 2018


labath created this revision.
labath added reviewers: aprantl, JDevlieghere, dblaikie.

This patch replaces the two switches which are deducing the size of
various forms with a single implementation. I have put the new
implementation into BinaryFormat, to avoid introducing dependencies
between the two independent libraries (DebugInfo and CodeGen) that need
this functionality.


Repository:
  rL LLVM

https://reviews.llvm.org/D44418

Files:
  include/llvm/BinaryFormat/Dwarf.h
  include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
  include/llvm/DebugInfo/DWARF/DWARFFormValue.h
  include/llvm/DebugInfo/DWARF/DWARFUnit.h
  lib/BinaryFormat/Dwarf.cpp
  lib/CodeGen/AsmPrinter/DIE.cpp
  lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
  lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
  lib/DebugInfo/DWARF/DWARFDebugLine.cpp
  lib/DebugInfo/DWARF/DWARFFormValue.cpp
  lib/DebugInfo/DWARF/DWARFUnit.cpp
  tools/llvm-dwp/llvm-dwp.cpp
  unittests/BinaryFormat/DwarfTest.cpp
  unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44418.138153.patch
Type: text/x-patch
Size: 27754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180313/801f2bc4/attachment-0001.bin>


More information about the llvm-commits mailing list