summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-10-26 13:05:45 +0000
committerHans Wennborg <hans@hanshq.net>2018-10-26 13:05:45 +0000
commit40ccbd315d8707aec785e8bd44e8beb1414366c0 (patch)
tree106040530da714ecf11fe072b1438ea952b43846 /clang/lib/AST/MicrosoftMangle.cpp
parent11c01f402f5d1aa64c80cc803cc1b5391f6b1764 (diff)
downloadbcm5719-llvm-40ccbd315d8707aec785e8bd44e8beb1414366c0.tar.gz
bcm5719-llvm-40ccbd315d8707aec785e8bd44e8beb1414366c0.zip
Revert r345330 "Add MS ABI mangling for operator<=>."
The generated MS manglings differ between 32- and 64-bit, and the test only expects the latter. See also the commit email thread. > Thanks to Cameron DaCamara at Microsoft for letting us know what their > chosen mangling is here! llvm-svn: 345380
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index 34e070ab33d..072184d82e8 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -1240,8 +1240,15 @@ void MicrosoftCXXNameMangler::mangleOperatorName(OverloadedOperatorKind OO,
case OO_Array_Delete: Out << "?_V"; break;
// <operator-name> ::= ?__L # co_await
case OO_Coawait: Out << "?__L"; break;
- // <operator-name> ::= ?__M # <=>
- case OO_Spaceship: Out << "?__M"; break;
+
+ case OO_Spaceship: {
+ // FIXME: Once MS picks a mangling, use it.
+ DiagnosticsEngine &Diags = Context.getDiags();
+ unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
+ "cannot mangle this three-way comparison operator yet");
+ Diags.Report(Loc, DiagID);
+ break;
+ }
case OO_Conditional: {
DiagnosticsEngine &Diags = Context.getDiags();
OpenPOWER on IntegriCloud