diff options
| author | Paul Robinson <paul.robinson@sony.com> | 2018-05-22 17:27:31 +0000 |
|---|---|---|
| committer | Paul Robinson <paul.robinson@sony.com> | 2018-05-22 17:27:31 +0000 |
| commit | 543c0e1d508807c6d0e82cca0748e6b8ccc66948 (patch) | |
| tree | 596bf4046ad8a0f3e6d91d82fecfeb33198880b1 /llvm/test/CodeGen/X86/dwarf-headers.ll | |
| parent | 9bfe932c541cdbe8978f399e79ec95bb61e94f71 (diff) | |
| download | bcm5719-llvm-543c0e1d508807c6d0e82cca0748e6b8ccc66948.tar.gz bcm5719-llvm-543c0e1d508807c6d0e82cca0748e6b8ccc66948.zip | |
[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
Diffstat (limited to 'llvm/test/CodeGen/X86/dwarf-headers.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/dwarf-headers.ll | 13 |
1 files changed, 8 insertions, 5 deletions
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: |

