]> granicus.if.org Git - llvm/commit
[DWARF] NFC: Collect info used by DWARFFormValue into a helper.
authorPaul Robinson <paul.robinson@sony.com>
Mon, 26 Jun 2017 18:43:01 +0000 (18:43 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Mon, 26 Jun 2017 18:43:01 +0000 (18:43 +0000)
commitfd770ea4979f98c71c325e91fc8541243bca14d0
treed46dca93f61686c50bdeb74e2d1e5ca7360014af
parentb988cd6c7f4a5f41589b2b1cfb094e089da9d00a
[DWARF] NFC: Collect info used by DWARFFormValue into a helper.

Some forms have sizes that depend on the DWARF version, DWARF format
(32/64-bit), or the size of an address.  Collect these into a struct
to simplify passing them around.  Require callers to provide one when
they query a form's size.

Differential Revision: http://reviews.llvm.org/D34570

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306315 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
include/llvm/DebugInfo/DWARF/DWARFFormValue.h
include/llvm/DebugInfo/DWARF/DWARFUnit.h
lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
lib/DebugInfo/DWARF/DWARFDebugLine.cpp
lib/DebugInfo/DWARF/DWARFFormValue.cpp
lib/DebugInfo/DWARF/DWARFUnit.cpp
tools/dsymutil/DwarfLinker.cpp
tools/llvm-dwp/llvm-dwp.cpp
unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp