mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232415 91177308-0d34-0410-b5e6-96231b3b80d8
			
			
This commit is contained in:
		@@ -200,11 +200,11 @@ attributes #2 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "n
 | 
			
		||||
 | 
			
		||||
!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
 | 
			
		||||
!1 = !MDFile(filename: "propagate.cc", directory: ".")
 | 
			
		||||
!2 = !{i32 0}
 | 
			
		||||
!2 = !{}
 | 
			
		||||
!3 = !{!4, !7}
 | 
			
		||||
!4 = !MDSubprogram(name: "foo", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !1, scope: !5, type: !6, function: i64 (i32, i32, i64)* @_Z3fooiil, variables: !2)
 | 
			
		||||
!5 = !MDFile(filename: "propagate.cc", directory: ".")
 | 
			
		||||
!6 = !MDSubroutineType(types: !2)
 | 
			
		||||
!6 = !MDSubroutineType(types: !{null})
 | 
			
		||||
!7 = !MDSubprogram(name: "main", line: 24, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 24, file: !1, scope: !5, type: !6, function: i32 ()* @main, variables: !2)
 | 
			
		||||
!8 = !{i32 2, !"Dwarf Version", i32 4}
 | 
			
		||||
!9 = !{i32 1, !"Debug Info Version", i32 3}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user