[DWARF] Factor out a DWARFUnitHeader class. NFC
authorPaul Robinson <paul.robinson@sony.com>
Mon, 14 May 2018 20:32:31 +0000 (20:32 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Mon, 14 May 2018 20:32:31 +0000 (20:32 +0000)
commit5f53f07b663d734a7a3a800529ec8f4e3db8df12
tree4ef1d748623da56223d34a2a6e4d861bf9b57181
parent098f0080da0497489dfb409337cb433723a610e8
[DWARF] Factor out a DWARFUnitHeader class. NFC

Extract information related to a "unit header" from DWARFUnit into a
new DWARFUnitHeader class, and add a DWARFUnit member for the header.
This is one step in the direction of allowing type units in the
.debug_info section for DWARF v5.

Differential Revision: https://reviews.llvm.org/D46707

llvm-svn: 332289
llvm/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
llvm/include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp