diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-16 21:10:12 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-16 21:10:12 +0000 |
commit | b786572d7c039e75bd6c285dfec4b3ac0056e1fc (patch) | |
tree | 4f5a6629634dd00abf0fed4ade0df93d5a1a6a74 /llvm/test/Transforms/AddDiscriminators/multiple.ll | |
parent | 4b4706b6018217b17f9e3f8d6653486c5100e23e (diff) | |
download | bcm5719-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/Transforms/AddDiscriminators/multiple.ll')
-rw-r--r-- | llvm/test/Transforms/AddDiscriminators/multiple.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Transforms/AddDiscriminators/multiple.ll b/llvm/test/Transforms/AddDiscriminators/multiple.ll index ce369f3c2ed..587baad43ee 100644 --- a/llvm/test/Transforms/AddDiscriminators/multiple.ll +++ b/llvm/test/Transforms/AddDiscriminators/multiple.ll @@ -53,11 +53,12 @@ attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointe !0 = !MDCompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) !1 = !MDFile(filename: "multiple.c", directory: ".") -!2 = !{i32 0} +!2 = !{} !3 = !{!4} !4 = !MDSubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, function: void (i32)* @foo, variables: !2) !5 = !MDFile(filename: "multiple.c", directory: ".") -!6 = !MDSubroutineType(types: !2) +!6 = !MDSubroutineType(types: !{null, !13}) +!13 = !MDBasicType(encoding: DW_ATE_signed, name: "int", size: 32, align: 32) !7 = !{i32 2, !"Dwarf Version", i32 4} !8 = !{i32 1, !"Debug Info Version", i32 3} !9 = !{!"clang version 3.5 (trunk 199750) (llvm/trunk 199751)"} |