File tree Expand file tree Collapse file tree 7 files changed +14
-8
lines changed Expand file tree Collapse file tree 7 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ constexpr static const char BUILTIN_TYPE_NAME_INT512[] = "Builtin.Int512";
58
58
constexpr static const char BUILTIN_TYPE_NAME_INTLITERAL[] =
59
59
" Builtin.IntLiteral" ;
60
60
// / The name of the Builtin type for Float
61
- constexpr static const char BUILTIN_TYPE_NAME_FLOAT[] = " Builtin.Float " ;
61
+ constexpr static const char BUILTIN_TYPE_NAME_FLOAT[] = " Builtin.FPIEEE " ;
62
62
// / The name of the Builtin type for NativeObject
63
63
constexpr static const char BUILTIN_TYPE_NAME_NATIVEOBJECT[] =
64
64
" Builtin.NativeObject" ;
Original file line number Diff line number Diff line change @@ -1810,7 +1810,7 @@ class OldDemangler {
1810
1810
if (demangleBuiltinSize (size)) {
1811
1811
return Factory.createNode (
1812
1812
Node::Kind::BuiltinTypeName,
1813
- std::move (DemanglerPrinter () << " Builtin.Float " << size).str ());
1813
+ std::move (DemanglerPrinter () << " Builtin.FPIEEE " << size).str ());
1814
1814
}
1815
1815
}
1816
1816
if (c == ' i' ) {
Original file line number Diff line number Diff line change @@ -1350,7 +1350,7 @@ void Remangler::mangleBuiltinTypeName(Node *node) {
1350
1350
Out << ' w' ;
1351
1351
} else if (stripPrefix (text, " Builtin.Int" )) {
1352
1352
Out << ' i' << text << ' _' ;
1353
- } else if (stripPrefix (text, " Builtin.Float " )) {
1353
+ } else if (stripPrefix (text, " Builtin.FPIEEE " )) {
1354
1354
Out << ' f' << text << ' _' ;
1355
1355
} else if (stripPrefix (text, " Builtin.Vec" )) {
1356
1356
// Avoid using StringRef::split because its definition is not
Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ void Remangler::mangleBuiltinTypeName(Node *node) {
709
709
auto element = text.substr (splitIdx).substr (1 );
710
710
if (element == " RawPointer" ) {
711
711
Buffer << ' p' ;
712
- } else if (element.consume_front (" Float " )) {
712
+ } else if (element.consume_front (" FPIEEE " )) {
713
713
Buffer << ' f' << element << ' _' ;
714
714
} else if (element.consume_front (" Int" )) {
715
715
Buffer << ' i' << element << ' _' ;
Original file line number Diff line number Diff line change 1
- _TtBf80_ ---> Builtin.Float80
1
+ _TtBf32_ ---> Builtin.FPIEEE32
2
+ _TtBf64_ ---> Builtin.FPIEEE64
3
+ _TtBf80_ ---> Builtin.FPIEEE80
2
4
_TtBi32_ ---> Builtin.Int32
5
+ $sBf32_ ---> Builtin.FPIEEE32
6
+ $sBf64_ ---> Builtin.FPIEEE64
7
+ $sBf80_ ---> Builtin.FPIEEE80
8
+ $sBi32_ ---> Builtin.Int32
3
9
_TtBw ---> Builtin.Word
4
10
_TtBO ---> Builtin.UnknownObject
5
11
_TtBo ---> Builtin.NativeObject
Original file line number Diff line number Diff line change 1
- _TtBf80_ ---> Builtin.Float80
1
+ _TtBf80_ ---> Builtin.FPIEEE80
2
2
_TtBi32_ ---> Builtin.Int32
3
3
_TtBw ---> Builtin.Word
4
4
_TtBO ---> Builtin.UnknownObject
Original file line number Diff line number Diff line change 1
1
// RUN: %sourcekitd-test -req=demangle unmangled _TtBf80_ _TtP3foo3bar_ '$s3Foo11AppDelegateC29applicationDidFinishLaunchingyy10Foundation12NotificationVF' | %FileCheck %s
2
2
// CHECK: START DEMANGLE
3
3
// CHECK-NEXT: <empty>
4
- // CHECK-NEXT: Builtin.Float80
4
+ // CHECK-NEXT: Builtin.FPIEEE80
5
5
// CHECK-NEXT: foo.bar
6
6
// CHECK-NEXT: Foo.AppDelegate.applicationDidFinishLaunching(Foundation.Notification) -> ()
7
7
// CHECK-NEXT: END DEMANGLE
8
8
9
9
// RUN: %sourcekitd-test -req=demangle unmangled _TtBf80_ _TtP3foo3bar_ '$s3Foo11AppDelegateC29applicationDidFinishLaunchingyy10Foundation12NotificationVF' -simplified-demangling | %FileCheck %s -check-prefix=SIMPLIFIED
10
10
// SIMPLIFIED: START DEMANGLE
11
11
// SIMPLIFIED-NEXT: <empty>
12
- // SIMPLIFIED-NEXT: Builtin.Float80
12
+ // SIMPLIFIED-NEXT: Builtin.FPIEEE80
13
13
// SIMPLIFIED-NEXT: bar
14
14
// SIMPLIFIED-NEXT: AppDelegate.applicationDidFinishLaunching(_:)
15
15
// SIMPLIFIED-NEXT: END DEMANGLE
You can’t perform that action at this time.
0 commit comments