summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-16 21:10:12 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-16 21:10:12 +0000
commitb786572d7c039e75bd6c285dfec4b3ac0056e1fc (patch)
tree4f5a6629634dd00abf0fed4ade0df93d5a1a6a74 /llvm/test/DebugInfo
parent4b4706b6018217b17f9e3f8d6653486c5100e23e (diff)
downloadbcm5719-llvm-b786572d7c039e75bd6c285dfec4b3ac0056e1fc.tar.gz
bcm5719-llvm-b786572d7c039e75bd6c285dfec4b3ac0056e1fc.zip
DebugInfo: Fix testcases that fail -verify-debug-info=true
As part of PR22777, fix testcases that fail the debug info verifier. The changes fall into the following categories: - Empty `filename:` fields in `MDFile`s. Compile units and some types require non-empty filenames. A number of testcases have empty filenames, probably due to hand-reduction of testcases. - Not-quite empty arrays: `!{i32 0}`. This used to be equivalent in the debug info schema to `!{}`. They cause problems for `!MDSubroutineType`'s `types:` array, since it requires all operands to be valid types. (Note that `!{null}` is the correct type array for functions that take no arguments and return `void`.) - Significantly bitrotted testcases. Nodes got left behind a few upgrades ago because of missing or invalid tags. llvm-svn: 232415
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/X86/processes-relocations.ll4
-rw-r--r--llvm/test/DebugInfo/debug-info-qualifiers.ll2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/DebugInfo/X86/processes-relocations.ll b/llvm/test/DebugInfo/X86/processes-relocations.ll
index 885a9275fcc..31efe468f7e 100644
--- a/llvm/test/DebugInfo/X86/processes-relocations.ll
+++ b/llvm/test/DebugInfo/X86/processes-relocations.ll
@@ -13,8 +13,8 @@
!llvm.module.flags = !{!3, !4}
!llvm.ident = !{!5}
-!0 = !{i32 786449, !1, i32 12, !"clang version 3.6.0 ", i1 false, !"", i32 0, !2, !2, !2, !2, !2, !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
-!1 = !{!"empty.c", !"/a"}
+!0 = !MDCompileUnit(file: !1, language: DW_LANG_C99, producer: "clang version 3.6.0 ", isOptimized: false, enums: !2, retainedTypes: !2, subprograms: !2, globals: !2, imports: !2, emissionKind: 1)
+!1 = !MDFile(filename: "empty.c", directory: "/a")
!2 = !{}
!3 = !{i32 2, !"Dwarf Version", i32 4}
!4 = !{i32 2, !"Debug Info Version", i32 3}
diff --git a/llvm/test/DebugInfo/debug-info-qualifiers.ll b/llvm/test/DebugInfo/debug-info-qualifiers.ll
index 595181cd1c5..1bfe367fe7e 100644
--- a/llvm/test/DebugInfo/debug-info-qualifiers.ll
+++ b/llvm/test/DebugInfo/debug-info-qualifiers.ll
@@ -62,7 +62,7 @@ attributes #1 = { nounwind readnone }
!llvm.ident = !{!23}
!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !3, subprograms: !16, globals: !2, imports: !2)
-!1 = !MDFile(filename: "", directory: "")
+!1 = !MDFile(filename: "debug-info-qualifiers.cpp", directory: "")
!2 = !{}
!3 = !{!4}
!4 = !MDCompositeType(tag: DW_TAG_class_type, name: "A", line: 2, size: 8, align: 8, file: !5, elements: !6, identifier: "_ZTS1A")
OpenPOWER on IntegriCloud