summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/dbg-const.ll
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-08-26 22:39:55 +0000
committerManman Ren <manman.ren@gmail.com>2013-08-26 22:39:55 +0000
commit0ed70aeb85cb0bf00721015afdebb4b825dc6fa1 (patch)
tree58fe46e21c20d39039981811be3002b613eba9ea /llvm/test/CodeGen/X86/dbg-const.ll
parentbdc9ff449800079c194d30e919ca74ce15f64284 (diff)
downloadbcm5719-llvm-0ed70aeb85cb0bf00721015afdebb4b825dc6fa1.tar.gz
bcm5719-llvm-0ed70aeb85cb0bf00721015afdebb4b825dc6fa1.zip
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. llvm-svn: 189282
Diffstat (limited to 'llvm/test/CodeGen/X86/dbg-const.ll')
-rw-r--r--llvm/test/CodeGen/X86/dbg-const.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/dbg-const.ll b/llvm/test/CodeGen/X86/dbg-const.ll
index b37eb0af48e..21ff4229d99 100644
--- a/llvm/test/CodeGen/X86/dbg-const.ll
+++ b/llvm/test/CodeGen/X86/dbg-const.ll
@@ -33,7 +33,7 @@ declare i32 @bar() nounwind readnone
!0 = metadata !{i32 786478, metadata !15, metadata !1, metadata !"foobar", metadata !"foobar", metadata !"foobar", i32 12, metadata !3, i1 false, i1 true, i32 0, i32 0, null, i1 false, i1 true, i32 ()* @foobar, null, null, metadata !14, i32 0} ; [ DW_TAG_subprogram ]
!1 = metadata !{i32 786473, metadata !15} ; [ DW_TAG_file_type ]
!2 = metadata !{i32 786449, metadata !15, i32 12, metadata !"clang version 2.9 (trunk 114183)", i1 true, metadata !"", i32 0, metadata !16, metadata !16, metadata !13, null, null, metadata !""} ; [ DW_TAG_compile_unit ]
-!3 = metadata !{i32 786453, metadata !15, metadata !1, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !4, i32 0, null}
+!3 = metadata !{i32 786453, metadata !15, 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 !{metadata !5}
!5 = metadata !{i32 786468, metadata !15, metadata !1, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5}
!6 = metadata !{i32 786688, metadata !7, metadata !"j", metadata !1, i32 15, metadata !5, i32 0, null}
OpenPOWER on IntegriCloud