From 543c0e1d508807c6d0e82cca0748e6b8ccc66948 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Tue, 22 May 2018 17:27:31 +0000 Subject: [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/test/CodeGen/X86/dwarf-headers.ll | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'llvm/test/CodeGen/X86/dwarf-headers.ll') diff --git a/llvm/test/CodeGen/X86/dwarf-headers.ll b/llvm/test/CodeGen/X86/dwarf-headers.ll index f30e826a9c1..b2a3115cf5e 100644 --- a/llvm/test/CodeGen/X86/dwarf-headers.ll +++ b/llvm/test/CodeGen/X86/dwarf-headers.ll @@ -19,9 +19,10 @@ ; RUN: llvm-dwarfdump -v %t.dwo | FileCheck %s --check-prefix=DWO-5 ; Looking for DWARF headers to be generated correctly. -; There are 7 variants: v4 CU, v4 TU, v5 (normal/skeleton/split) CU, -; v5 (normal/split) TU. The v5 CU variants and TU variants differ -; only in the type-unit code. +; There are 8 variants with 5 formats: v4 CU, v4 TU, v5 normal/partial CU, +; v5 skeleton/split CU, v5 normal/split TU. Some v5 variants differ only +; in the unit_type code, and the skeleton/split CU differs from normal/partial +; by having one extra field (dwo_id). ; (v2 thru v4 CUs are all the same, and TUs were invented in v4, ; so we don't bother checking older versions.) @@ -73,11 +74,13 @@ ; ; O-5: .debug_info contents: ; O-5: 0x00000000: Compile Unit: {{.*}} version = 0x0005 unit_type = DW_UT_skeleton abbr_offset -; O-5: 0x0000000c: DW_TAG_compile_unit +; O-5-SAME: DWO_id = 0x4ed74084f749d96b +; O-5: 0x00000014: DW_TAG_compile_unit ; ; DWO-5: .debug_info.dwo contents: ; DWO-5: 0x00000000: Compile Unit: {{.*}} version = 0x0005 unit_type = DW_UT_split_compile abbr_offset -; DWO-5: 0x0000000c: DW_TAG_compile_unit +; DWO-5-SAME: DWO_id = 0x4ed74084f749d96b +; DWO-5: 0x00000014: DW_TAG_compile_unit ; ; FIXME: V5 wants type units in .debug_info.dwo not .debug_types.dwo. ; DWO-5: .debug_types.dwo contents: -- cgit v1.2.3