mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Debug Info: update testing cases to specify the debug info version number.
We are going to drop debug info without a version number or with a different version number, to make sure we don't crash when we see bitcode files with different debug info metadata format. Make tests more robust by removing hard-coded metadata numbers in CHECK lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -182,7 +182,7 @@ if.end5: ; preds = %if.then3, %if.end
|
||||
; CHECK: tail call i8* @objc_retain(i8* %x) [[NUW:#[0-9]+]]
|
||||
; CHECK-NOT: @objc_
|
||||
; CHECK: if.end5:
|
||||
; CHECK: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release !0
|
||||
; CHECK: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release ![[RELEASE:[0-9]+]]
|
||||
; CHECK-NOT: @objc_
|
||||
; CHECK: }
|
||||
define void @test1b_imprecise(i8* %x, i1 %p, i1 %q) {
|
||||
@ -2202,7 +2202,7 @@ define void @test53(void ()** %zz, i8** %pp) {
|
||||
|
||||
; CHECK-LABEL: define void @test54(
|
||||
; CHECK: call i8* @returner()
|
||||
; CHECK-NEXT: call void @objc_release(i8* %t) [[NUW]], !clang.imprecise_release !0
|
||||
; CHECK-NEXT: call void @objc_release(i8* %t) [[NUW]], !clang.imprecise_release ![[RELEASE]]
|
||||
; CHECK-NEXT: ret void
|
||||
; CHECK: }
|
||||
define void @test54() {
|
||||
@ -2236,7 +2236,7 @@ entry:
|
||||
; CHECK-NEXT: %0 = tail call i8* @objc_retain(i8* %x) [[NUW]]
|
||||
; CHECK-NEXT: tail call void @use_pointer(i8* %x)
|
||||
; CHECK-NEXT: tail call void @use_pointer(i8* %x)
|
||||
; CHECK-NEXT: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release !0
|
||||
; CHECK-NEXT: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release ![[RELEASE]]
|
||||
; CHECK-NEXT: br label %if.end
|
||||
; CHECK-NOT: @objc
|
||||
; CHECK: }
|
||||
@ -3009,7 +3009,11 @@ define void @test67(i8* %x) {
|
||||
ret void
|
||||
}
|
||||
|
||||
!llvm.module.flags = !{!1}
|
||||
|
||||
!0 = metadata !{}
|
||||
!1 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|
||||
|
||||
; CHECK: attributes #0 = { nounwind readnone }
|
||||
; CHECK: attributes [[NUW]] = { nounwind }
|
||||
; CHECK: ![[RELEASE]] = metadata !{}
|
||||
|
Reference in New Issue
Block a user