mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Adjust test/IRGen/ptrauth-foreign.sil and test/IRGen/ptrauth-class-methods.sil for changed layout of type metadata after #63813
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
import Builtin
|
import Builtin
|
||||||
|
|
||||||
// CHECK: @"$s4test1ACfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1AC*)* @"$s4test1ACfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1ACMf" to i64), i64 48063 }, section "llvm.ptrauth", align 8
|
// CHECK: @"$s4test1ACfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1AC*)* @"$s4test1ACfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1ACMf", i32 0, i32 1) to i64), i64 48063 }, section "llvm.ptrauth", align 8
|
||||||
// CHECK: @A_foo.ptrauth = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1AC*)* @A_foo to i8*), i32 0, i64 ptrtoint ({{.*}} getelementptr inbounds ({{.*}} @"$s4test1ACMf", i32 0, i32 {{.*}}) to i64), i64 23008 }, section "llvm.ptrauth", align 8
|
// CHECK: @A_foo.ptrauth = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1AC*)* @A_foo to i8*), i32 0, i64 ptrtoint ({{.*}} getelementptr inbounds ({{.*}} @"$s4test1ACMf", i32 0, i32 {{.*}}) to i64), i64 23008 }, section "llvm.ptrauth", align 8
|
||||||
// CHECK: @"$s4test1BCfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1BC*)* @"$s4test1BCfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1BCMf" to i64), i64 48063 }, section "llvm.ptrauth", align 8
|
// CHECK: @"$s4test1BCfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1BC*)* @"$s4test1BCfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1BCMf", i32 0, i32 1) to i64), i64 48063 }, section "llvm.ptrauth", align 8
|
||||||
// CHECK: @B_foo.ptrauth = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1BC*)* @B_foo to i8*), i32 0, i64 ptrtoint ({{.*}} getelementptr inbounds ({{.*}} @"$s4test1BCMf", i32 0, i32 {{.*}}) to i64), i64 23008 }, section "llvm.ptrauth", align 8
|
// CHECK: @B_foo.ptrauth = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1BC*)* @B_foo to i8*), i32 0, i64 ptrtoint ({{.*}} getelementptr inbounds ({{.*}} @"$s4test1BCMf", i32 0, i32 {{.*}}) to i64), i64 23008 }, section "llvm.ptrauth", align 8
|
||||||
|
|
||||||
// CHECK: @"$s4test1GCMn" =
|
// CHECK: @"$s4test1GCMn" =
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ bb0:
|
|||||||
|
|
||||||
// CHECK: @"$sSo9WidgetRefaMn.ptrauth" =
|
// CHECK: @"$sSo9WidgetRefaMn.ptrauth" =
|
||||||
// CHECK-SAME: @"$sSo9WidgetRefaMn"
|
// CHECK-SAME: @"$sSo9WidgetRefaMn"
|
||||||
// CHECK-SAME: @"$sSo9WidgetRefaMf", i32 0, i32 2
|
// CHECK-SAME: @"$sSo9WidgetRefaMf", i32 0, i32 3
|
||||||
// CHECK-SAME: i64 44678
|
// CHECK-SAME: i64 44678
|
||||||
// CHECK-SAME: section "llvm.ptrauth"
|
// CHECK-SAME: section "llvm.ptrauth"
|
||||||
// CHECK: @"$sSo9WidgetRefaMf" = linkonce_odr hidden constant
|
// CHECK: @"$sSo9WidgetRefaMf" = linkonce_odr hidden constant
|
||||||
@@ -18,7 +18,7 @@ bb0:
|
|||||||
|
|
||||||
// CHECK: @"$sSo7IntPairVMn.ptrauth" =
|
// CHECK: @"$sSo7IntPairVMn.ptrauth" =
|
||||||
// CHECK-SAME: @"$sSo7IntPairVMn"
|
// CHECK-SAME: @"$sSo7IntPairVMn"
|
||||||
// CHECK-SAME: @"$sSo7IntPairVMf", i32 0, i32 2
|
// CHECK-SAME: @"$sSo7IntPairVMf", i32 0, i32 3
|
||||||
// CHECK-SAME: i64 44678
|
// CHECK-SAME: i64 44678
|
||||||
// CHECK-SAME: section "llvm.ptrauth"
|
// CHECK-SAME: section "llvm.ptrauth"
|
||||||
// CHECK: @"$sSo7IntPairVMf" = linkonce_odr hidden constant
|
// CHECK: @"$sSo7IntPairVMf" = linkonce_odr hidden constant
|
||||||
|
|||||||
Reference in New Issue
Block a user