mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
77a0728d96
Fix debug info in these tests, which started failing with a WIP patch to verify compile units and types. The problems look like they were all caused by bitrot. They fell into these categories: - Using `!{i32 0}` instead of `!{}`. - Using `!{null}` instead of `!{}`. - Using `!MDExpression()` instead of `!{}`. - Using `!8` instead of `!{!8}`. - `file:` references that pointed at `MDCompileUnit`s instead of the same `MDFile` as the compile unit. - `file:` references that were numerically off-by-one or (off-by-ten). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233415 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
1.1 KiB
LLVM
28 lines
1.1 KiB
LLVM
; RUN: echo '!9 = !{!"%/T/linkagename.ll", !0}' > %t1
|
|
; RUN: cat %s %t1 > %t2
|
|
; RUN: opt -insert-gcov-profiling -disable-output < %t2
|
|
; RUN: grep _Z3foov %T/linkagename.gcno
|
|
; RUN: rm %T/linkagename.gcno
|
|
|
|
define void @_Z3foov() {
|
|
entry:
|
|
ret void, !dbg !8
|
|
}
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!10}
|
|
!llvm.gcov = !{!9}
|
|
|
|
!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.3 (trunk 177323)", isOptimized: false, emissionKind: 0, file: !2, enums: !3, retainedTypes: !3, subprograms: !4, globals: !3, imports: !3)
|
|
!1 = !MDFile(filename: "hello.cc", directory: "/home/nlewycky")
|
|
!2 = !MDFile(filename: "hello.cc", directory: "/home/nlewycky")
|
|
!3 = !{}
|
|
!4 = !{!5}
|
|
!5 = !MDSubprogram(name: "foo", linkageName: "_Z3foov", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !1, type: !6, function: void ()* @_Z3foov, variables: !3)
|
|
!6 = !MDSubroutineType(types: !7)
|
|
!7 = !{null}
|
|
!8 = !MDLocation(line: 1, scope: !5)
|
|
|
|
|
|
!10 = !{i32 1, !"Debug Info Version", i32 3}
|