[llvm] r265281 - [DebugInfo] Fix tests in Assembler/
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 3 19:11:35 PDT 2016
Author: davide
Date: Sun Apr 3 21:11:34 2016
New Revision: 265281
URL: http://llvm.org/viewvc/llvm-project?rev=265281&view=rev
Log:
[DebugInfo] Fix tests in Assembler/
Each DISubprogram with isDefinition : true must
belong to a compile unit.
Modified:
llvm/trunk/test/Assembler/diimportedentity.ll
llvm/trunk/test/Assembler/dilexicalblock.ll
llvm/trunk/test/Assembler/dilocalvariable-arg-large.ll
llvm/trunk/test/Assembler/dilocalvariable.ll
llvm/trunk/test/Assembler/dilocation.ll
llvm/trunk/test/Assembler/disubprogram.ll
Modified: llvm/trunk/test/Assembler/diimportedentity.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/diimportedentity.ll?rev=265281&r1=265280&r2=265281&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/diimportedentity.ll (original)
+++ llvm/trunk/test/Assembler/diimportedentity.ll Sun Apr 3 21:11:34 2016
@@ -4,6 +4,9 @@
; CHECK: !named = !{!0, !1, !2, !3, !3}
!named = !{!0, !1, !2, !3, !4}
+!llvm.module.flags = !{!7}
+!llvm.dbg.cu = !{!5}
+
; CHECK: !0 = distinct !DISubprogram({{.*}})
; CHECK-NEXT: !1 = !DICompositeType({{.*}})
!0 = distinct !DISubprogram(name: "foo")
@@ -18,3 +21,10 @@
!4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null,
line: 0)
+!5 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
+ file: !6,
+ isOptimized: true, flags: "-O2",
+ splitDebugFilename: "abc.debug", emissionKind: 2,
+ subprograms: !{!0})
+!6 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
+!7 = !{i32 2, !"Debug Info Version", i32 3}
Modified: llvm/trunk/test/Assembler/dilexicalblock.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/dilexicalblock.ll?rev=265281&r1=265280&r2=265281&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/dilexicalblock.ll (original)
+++ llvm/trunk/test/Assembler/dilexicalblock.ll Sun Apr 3 21:11:34 2016
@@ -4,6 +4,9 @@
; CHECK: !named = !{!0, !1, !2, !3, !4, !4, !5, !6, !7, !7}
!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
+!llvm.module.flags = !{!11}
+!llvm.dbg.cu = !{!10}
+
!0 = distinct !{}
!1 = distinct !DISubprogram(name: "foo", scope: !2)
!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
@@ -23,3 +26,10 @@
; CHECK: !7 = !DILexicalBlockFile(scope: !3, discriminator: 7)
!8 = !DILexicalBlockFile(scope: !3, discriminator: 7)
!9 = !DILexicalBlockFile(scope: !3, file: null, discriminator: 7)
+
+!10 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
+ file: !2,
+ isOptimized: true, flags: "-O2",
+ splitDebugFilename: "abc.debug", emissionKind: 2,
+ subprograms: !{!1})
+!11 = !{i32 2, !"Debug Info Version", i32 3}
Modified: llvm/trunk/test/Assembler/dilocalvariable-arg-large.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/dilocalvariable-arg-large.ll?rev=265281&r1=265280&r2=265281&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/dilocalvariable-arg-large.ll (original)
+++ llvm/trunk/test/Assembler/dilocalvariable-arg-large.ll Sun Apr 3 21:11:34 2016
@@ -4,7 +4,18 @@
; CHECK: !named = !{!0, !1}
!named = !{!0, !1}
+!llvm.module.flags = !{!4}
+!llvm.dbg.cu = !{!2}
+
!0 = distinct !DISubprogram()
; CHECK: !1 = !DILocalVariable(name: "foo", arg: 65535, scope: !0)
!1 = !DILocalVariable(name: "foo", arg: 65535, scope: !0)
+
+!2 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
+ file: !3,
+ isOptimized: true, flags: "-O2",
+ splitDebugFilename: "abc.debug", emissionKind: 2,
+ subprograms: !{!0})
+!3 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
+!4 = !{i32 2, !"Debug Info Version", i32 3}
Modified: llvm/trunk/test/Assembler/dilocalvariable.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/dilocalvariable.ll?rev=265281&r1=265280&r2=265281&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/dilocalvariable.ll (original)
+++ llvm/trunk/test/Assembler/dilocalvariable.ll Sun Apr 3 21:11:34 2016
@@ -6,6 +6,9 @@
; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
+!llvm.module.flags = !{!10}
+!llvm.dbg.cu = !{!9}
+
!0 = distinct !DISubprogram()
!1 = distinct !{}
!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
@@ -24,3 +27,10 @@
; CHECK: !8 = !DILocalVariable(scope: !0)
!7 = !DILocalVariable(scope: !0, arg: 1)
!8 = !DILocalVariable(scope: !0)
+
+!9 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
+ file: !2,
+ isOptimized: true, flags: "-O2",
+ splitDebugFilename: "abc.debug", emissionKind: 2,
+ subprograms: !{!0})
+!10 = !{i32 2, !"Debug Info Version", i32 3}
Modified: llvm/trunk/test/Assembler/dilocation.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/dilocation.ll?rev=265281&r1=265280&r2=265281&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/dilocation.ll (original)
+++ llvm/trunk/test/Assembler/dilocation.ll Sun Apr 3 21:11:34 2016
@@ -4,6 +4,9 @@
; CHECK: !named = !{!0, !1, !1, !2, !2, !3, !3, !4}
!named = !{!0, !1, !2, !3, !4, !5, !6, !7}
+!llvm.module.flags = !{!10}
+!llvm.dbg.cu = !{!8}
+
; CHECK: !0 = distinct !DISubprogram(
!0 = distinct !DISubprogram()
@@ -21,3 +24,11 @@
; CHECK-NEXT: !4 = !DILocation(line: 4294967295, column: 65535, scope: !0)
!7 = !DILocation(line: 4294967295, column: 65535, scope: !0)
+
+!8 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
+ file: !9,
+ isOptimized: true, flags: "-O2",
+ splitDebugFilename: "abc.debug", emissionKind: 2,
+ subprograms: !{!0})
+!9 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
+!10 = !{i32 2, !"Debug Info Version", i32 3}
Modified: llvm/trunk/test/Assembler/disubprogram.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/disubprogram.ll?rev=265281&r1=265280&r2=265281&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/disubprogram.ll (original)
+++ llvm/trunk/test/Assembler/disubprogram.ll Sun Apr 3 21:11:34 2016
@@ -51,3 +51,10 @@ define void @_Z3foov() !dbg !9 {
!12 = !{i32 1, !"Debug Info Version", i32 3}
!llvm.module.flags = !{!12}
+!llvm.dbg.cu = !{!13}
+
+!13 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
+ file: !2,
+ isOptimized: true, flags: "-O2",
+ splitDebugFilename: "abc.debug", emissionKind: 2,
+ subprograms: !{!7, !9, !10, !11})
More information about the llvm-commits
mailing list