diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-08-26 22:39:55 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-08-26 22:39:55 +0000 |
commit | 6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8 (patch) | |
tree | 8aaac55e738c68b9d74e97ab921cb0a46b41ba87 /test/Transforms/StripSymbols/2010-06-30-StripDebug.ll | |
parent | 4bf6326d0871961a7402c797a0399a2bdaf53574 (diff) | |
download | llvm-6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8.tar.gz llvm-6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8.tar.bz2 llvm-6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8.tar.xz |
Debug Info: add an identifier field to DICompositeType.
DICompositeType will have an identifier field at position 14. For now, the
field is set to null in DIBuilder.
For DICompositeTypes where the template argument field (the 13th field)
was optional, modify DIBuilder to make sure the template argument field is set.
Now DICompositeType has 15 fields.
Update DIBuilder to use NULL instead of "i32 0" for null value of a MDNode.
Update verifier to check that DICompositeType has 15 fields and the last
field is null or a MDString.
Update testing cases to include an extra field for DICompositeType.
The identifier field will be used by type uniquing so a front end can
genearte a DICompositeType with a unique identifer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/StripSymbols/2010-06-30-StripDebug.ll')
-rw-r--r-- | test/Transforms/StripSymbols/2010-06-30-StripDebug.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/StripSymbols/2010-06-30-StripDebug.ll b/test/Transforms/StripSymbols/2010-06-30-StripDebug.ll index bba4016f53..14eb8a18dc 100644 --- a/test/Transforms/StripSymbols/2010-06-30-StripDebug.ll +++ b/test/Transforms/StripSymbols/2010-06-30-StripDebug.ll @@ -20,7 +20,7 @@ declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone !0 = metadata !{i32 524334, metadata !12, metadata !1, metadata !"foo", metadata !"foo", metadata !"foo", i32 2, metadata !3, i1 false, i1 true, i32 0, i32 0, null, i1 false, i1 true, void ()* @foo, null, null, null, i32 0} ; [ DW_TAG_subprogram ] !1 = metadata !{i32 524329, metadata !12} ; [ DW_TAG_file_type ] !2 = metadata !{i32 524305, metadata !12, i32 1, metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 true, metadata !"", i32 0, metadata !4, metadata !4, null, null, null, metadata !""} ; [ DW_TAG_compile_unit ] -!3 = metadata !{i32 524309, metadata !12, metadata !1, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !4, i32 0, null} ; [ DW_TAG_subroutine_type ] +!3 = metadata !{i32 524309, metadata !12, metadata !1, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !4, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] !4 = metadata !{null} !5 = metadata !{i32 524544, metadata !6, metadata !"y", metadata !1, i32 3, metadata !7} ; [ DW_TAG_auto_variable ] !6 = metadata !{i32 524299, metadata !12, metadata !0, i32 2, i32 0, i32 0} ; [ DW_TAG_lexical_block ] |