Skip to content

Commit 49a037c

Browse files
authored
Merge pull request #26460 from pschuh/cpp-7
2 parents 19e6185 + 27f2886 commit 49a037c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ClangImporter/cxx_interop_ir.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func accessNSMember() {
2929
// CHECK-LABEL: define hidden swiftcc i32 @"$s6cxx_ir12basicMethods1as5Int32VSpySo0D0VG_tF"(i8*)
3030
// CHECK: [[THIS_PTR1:%.*]] = bitcast i8* %0 to %TSo7MethodsV*
3131
// CHECK: [[THIS_PTR2:%.*]] = bitcast %TSo7MethodsV* [[THIS_PTR1]] to %class.Methods*
32-
// CHECK: [[RESULT:%.*]] = call i32 @_ZN7Methods12SimpleMethodEi(%class.Methods* [[THIS_PTR2]], i32 4)
32+
// CHECK: [[RESULT:%.*]] = call i32 @{{_ZN7Methods12SimpleMethodEi|"\?SimpleMethod@Methods@@QEAAHH@Z"}}(%class.Methods* [[THIS_PTR2]], i32 4)
3333
// CHECK: ret i32 [[RESULT]]
3434
func basicMethods(a: UnsafeMutablePointer<Methods>) -> Int32 {
3535
return a.pointee.SimpleMethod(4)
@@ -38,14 +38,14 @@ func basicMethods(a: UnsafeMutablePointer<Methods>) -> Int32 {
3838
// CHECK-LABEL: define hidden swiftcc i32 @"$s6cxx_ir17basicMethodsConst1as5Int32VSpySo0D0VG_tF"(i8*)
3939
// CHECK: [[THIS_PTR1:%.*]] = bitcast i8* %0 to %TSo7MethodsV*
4040
// CHECK: [[THIS_PTR2:%.*]] = bitcast %TSo7MethodsV* [[THIS_PTR1]] to %class.Methods*
41-
// CHECK: [[RESULT:%.*]] = call i32 @_ZNK7Methods17SimpleConstMethodEi(%class.Methods* [[THIS_PTR2]], i32 3)
41+
// CHECK: [[RESULT:%.*]] = call i32 @{{_ZNK7Methods17SimpleConstMethodEi|"\?SimpleConstMethod@Methods@@QEBAHH@Z"}}(%class.Methods* [[THIS_PTR2]], i32 3)
4242
// CHECK: ret i32 [[RESULT]]
4343
func basicMethodsConst(a: UnsafeMutablePointer<Methods>) -> Int32 {
4444
return a.pointee.SimpleConstMethod(3)
4545
}
4646

4747
// CHECK-LABEL: define hidden swiftcc i32 @"$s6cxx_ir18basicMethodsStatics5Int32VyF"()
48-
// CHECK: [[RESULT:%.*]] = call i32 @_ZN7Methods18SimpleStaticMethodEi(i32 5)
48+
// CHECK: [[RESULT:%.*]] = call i32 @{{_ZN7Methods18SimpleStaticMethodEi|"\?SimpleStaticMethod@Methods@@SAHH@Z"}}(i32 5)
4949
// CHECK: ret i32 [[RESULT]]
5050
func basicMethodsStatic() -> Int32 {
5151
return Methods.SimpleStaticMethod(5)

0 commit comments

Comments
 (0)