[cfe-commits] r167503 - in /cfe/trunk: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGObjCRuntime.cpp lib/CodeGen/CGObjCRuntime.h test/CodeGenObjC/debug-info-ivars.m

Eric Christopher echristo at gmail.com
Tue Nov 6 15:49:28 PST 2012


+
> +// CHECK: metadata !{i32 786445, metadata !{{[0-9]*}}, metadata !"i",
> metadata !{{[0-9]*}}, i32 10, i64 32, i64 32, i64 0, i32 2, metadata
> !{{[0-9]*}}, null} ; [ DW_TAG_member ] [i] [line 10, size 32, align 32,
> offset 0] [protected] [from int]
> +// CHECK: metadata !{i32 786445, metadata !{{[0-9]*}}, metadata
> !"flag_1", metadata !{{[0-9]*}}, i32 11, i64 9, i64 32, i64 0, i32 2,
> metadata !{{[0-9]*}}, null} ; [ DW_TAG_member ] [flag_1] [line 11, size 9,
> align 32, offset 0] [protected] [from unsigned int]
> +// CHECK: metadata !{i32 786445, metadata !{{[0-9]*}}, metadata
> !"flag_2", metadata !{{[0-9]*}}, i32 12, i64 9, i64 32, i64 1, i32 2,
> metadata !{{[0-9]*}}, null} ; [ DW_TAG_member ] [flag_2] [line 12, size 9,
> align 32, offset 1] [protected] [from unsigned int]
> +// CHECK: metadata !{i32 786445, metadata !{{[0-9]*}}, metadata
> !"flag_3", metadata !{{[0-9]*}}, i32 14, i64 9, i64 32, i64 3, i32 2,
> metadata !{{[0-9]*}}, null} ; [ DW_TAG_member ] [flag_3] [line 14, size 9,
> align 32, offset 3] [protected] [from unsigned int]
> \ No newline at end of file
>

Looks good, FWIW you can probably compress the information you're checking
for in the testcase even more to avoid the possibility of things breaking
if the format changes slightly (the first field in particular almost never
needs to be checked).

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121106/c49d28a5/attachment.html>


More information about the cfe-commits mailing list