[PATCH] D35994: Debug info for variables whose type is shrinked to bool

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 12:14:01 PDT 2017


dblaikie accepted this revision.
dblaikie added inline comments.


================
Comment at: test/Transforms/GlobalOpt/integer-bool-dwarf.ll:83-91
+;CHECK: DW_AT_name [DW_FORM_strp] {{.*}} "foo"
+;CHECK-NEXT: DW_AT_type {{.*}}
+;CHECK-NEXT: DW_AT_decl_file {{.*}}
+;CHECK-NEXT: DW_AT_decl_line {{.*}}
+;CHECK-NEXT: DW_AT_location [DW_FORM_exprloc] (<0x11> 03 {{.*}} 06 10 6f 1e 10 00 22 9f )
+;                 DW_OP_addr <addr> DW_OP_deref DW_OP_constu <111> DW_OP_mul
+;                 DW_OP_constu <0>
----------------
Probably put these CHECK lines up the top, above the IR - that's where they usually go for test cases.


https://reviews.llvm.org/D35994





More information about the llvm-commits mailing list