Recommit: DebugInfo: Check DW_OP_convert in loclists with Split DWARF
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 5 Feb 2020 02:34:34 +0000 (18:34 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 5 Feb 2020 02:37:06 +0000 (18:37 -0800)
Originally committed in: 552a8fe12bd1822f48dda2e9e8728a179f82d356
            Reverted in: f75301d16d444d8cb6810d679290df744bc79ec7

Reverted because it was running llc directly (rather than %llc_dwarf)
which uses COFF files on Windows which LLVM doesn't support all DWARF
features in.

This functionality isn't fully working, but sets up the testing for a
follow-on patch that demonstrates and fixes the brokenness related to
DWO ID hashing this construct.

llvm/test/DebugInfo/X86/convert-loclist.ll

index ae38fab..955e288 100644 (file)
@@ -1,4 +1,6 @@
-; RUN: %llc_dwarf -dwarf-version=5 -filetype=obj -O0 < %s \
+; RUN: %llc_dwarf -filetype=obj < %s \
+; RUN:   | llvm-dwarfdump -debug-info -debug-loclists - | FileCheck %s
+; RUN: %llc_dwarf -split-dwarf-file=foo.dwo -filetype=obj < %s \
 ; RUN:   | llvm-dwarfdump -debug-info -debug-loclists - | FileCheck %s
 
 ; CHECK: 0x{{0*}}[[TYPE:.*]]: DW_TAG_base_type