Skip to content

Commit b23ad8f

Browse files
committed
Update mangling for 4.1
1 parent ae496a7 commit b23ad8f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/multifile/require-layout-generic-arg-closure.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
// The offset of the typemetadata in the class typemetadata must match.
77

8-
// FILE1-LABEL: define internal swiftcc void @{{.*}}S4test12requestType{{.*}}(%T4test3SubC*)
8+
// FILE1-LABEL: define internal swiftcc void @{{.*}}4test12requestType{{.*}}(%T4test3SubC*)
99
// FILE1: entry:
1010
// FILE1: [[T1:%.*]] = bitcast %T4test3SubC* %0 to %swift.type**
1111
// FILE1: [[TYPEMETADATA:%.*]] = load %swift.type*, %swift.type** [[T1]]
1212
// FILE1: [[T2:%.*]] = bitcast %swift.type* [[TYPEMETADATA]] to %swift.type**
1313
// This offset of T needs to be the same as the offset below.
1414
// FILE1: [[T_PTR:%.*]] = getelementptr inbounds %swift.type*, %swift.type** [[T2]], i64 16
1515
// FILE1: [[T:%.*]] = load %swift.type*, %swift.type** [[T_PTR]]
16-
// FILE1: call %swift.type* @{{.*}}S4test3SubCMa{{.*}}(%swift.type* [[T]])
16+
// FILE1: call %swift.type* @{{.*}}4test3SubCMa{{.*}}(%swift.type* [[T]])
1717

1818
public func requestType2<T>(x: T) {
1919
requestTypeThrough(closure: { x in print(x) }, arg: x)

test/multifile/require-layout-generic-arg-subscript.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// The offset of the typemetadata in the class typemetadata must match.
77

8-
// FILE1: define hidden swiftcc i64 @{{.*}}S4test12AccessorTestCySiAA3Sub{{.*}}(%T4test3SubC*, %T4test12AccessorTestC* swiftself)
8+
// FILE1: define hidden swiftcc i64 @{{.*}}4test12AccessorTestCySiAA3Sub{{.*}}(%T4test3SubC*, %T4test12AccessorTestC* swiftself)
99
// FILE1: [[T1:%.*]] = bitcast %T4test3SubC* %0 to %swift.type**
1010
// FILE1: [[TYPEMETADATA:%.*]] = load %swift.type*, %swift.type** [[T1]]
1111
// FILE1: [[T2:%.*]] = bitcast %swift.type* [[TYPEMETADATA]] to %swift.type**

test/multifile/require-layout-generic-arg.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// The offset of the typemetadata in the class typemetadata must match.
77

8-
// FILE1-LABEL: define{{.*}} swiftcc void @{{.*}}S4test11requestTypeyyAA3Sub{{.*}}(%T4test3SubC*)
8+
// FILE1-LABEL: define{{.*}} swiftcc void @{{.*}}4test11requestType{{.*}}(%T4test3SubC*)
99
// FILE1: [[T1:%.*]] = bitcast %T4test3SubC* %0 to %swift.type**
1010
// FILE1: [[TYPEMETADATA:%.*]] = load %swift.type*, %swift.type** [[T1]]
1111
// FILE1: [[T2:%.*]] = bitcast %swift.type* [[TYPEMETADATA]] to %swift.type**

0 commit comments

Comments
 (0)