summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/null-streamer.ll
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/CodeGen/X86/null-streamer.ll
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/CodeGen/X86/null-streamer.ll')
-rw-r--r--llvm/test/CodeGen/X86/null-streamer.ll7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/null-streamer.ll b/llvm/test/CodeGen/X86/null-streamer.ll
index 5ec97f8c289..c7be651a09c 100644
--- a/llvm/test/CodeGen/X86/null-streamer.ll
+++ b/llvm/test/CodeGen/X86/null-streamer.ll
@@ -15,15 +15,14 @@ define void @f1() {
!llvm.module.flags = !{!11, !13}
!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: " ", isOptimized: true, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !9, imports: !2)
-!1 = !MDFile(filename: "", directory: "")
+!1 = !MDFile(filename: "file.c", directory: "")
!2 = !{}
!3 = !{!4}
-!4 = !MDSubprogram(name: "", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 2, file: !1, scope: !5, type: !6, function: i32 ()* null, variables: !2)
-!5 = !MDFile(filename: "", directory: "")
+!4 = !MDSubprogram(name: "", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 2, file: !1, scope: !1, type: !6, function: i32 ()* null, variables: !2)
!6 = !MDSubroutineType(types: !7)
!7 = !{!8}
!8 = !MDBasicType(tag: DW_TAG_base_type, size: 32, align: 32, encoding: DW_ATE_signed)
!9 = !{!10}
-!10 = !MDGlobalVariable(name: "i", linkageName: "_ZL1i", line: 1, isLocal: true, isDefinition: true, scope: null, file: !5, type: !8)
+!10 = !MDGlobalVariable(name: "i", linkageName: "_ZL1i", line: 1, isLocal: true, isDefinition: true, scope: null, file: !1, type: !8)
!11 = !{i32 2, !"Dwarf Version", i32 3}
!13 = !{i32 1, !"Debug Info Version", i32 3}
OpenPOWER on IntegriCloud