[DWARFv5] Put the DWO ID in its place.
authorPaul Robinson <paul.robinson@sony.com>
Tue, 22 May 2018 17:27:31 +0000 (17:27 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Tue, 22 May 2018 17:27:31 +0000 (17:27 +0000)
commit543c0e1d508807c6d0e82cca0748e6b8ccc66948
tree596bf4046ad8a0f3e6d91d82fecfeb33198880b1
parent9bfe932c541cdbe8978f399e79ec95bb61e94f71
[DWARFv5] Put the DWO ID in its place.

In DWARF v5, the DWO ID is in the (split/skeleton) CU header, not an
attribute on the CU DIE.

This changes the size of those headers, so use the parsed size whenever
we have one, for simplicitly.

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

llvm-svn: 333004
llvm/include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/CodeGen/X86/dwarf-headers.ll
llvm/test/DebugInfo/X86/dwarfdump-header.s