rnk added a comment.

@compnerd's suggestion is still a decent one: https://reviews.llvm.org/D31372

Which, I think is just adding something wacky like `@swiftcc@__Swift@@` which 
would demangle as `__Swift::swiftcc` if the demangler expected an NNS there. Of 
course, it doesn't, so it won't demangle, but at least you can overload between 
cdecl and swiftcc then.



================
Comment at: lib/AST/MicrosoftMangle.cpp:2133
+      llvm::errs() << "Unsupported CC for mangling: " << CC << ".\n";
     case CC_Win64:
     case CC_X86_64SysV:
----------------
smeenai wrote:
> You still need the default label, right?
Surely we can emit a real custom diagnostic, similar to 
CodeGenModule::ErrorUnsupported.


Repository:
  rC Clang

https://reviews.llvm.org/D40929



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D40929: Unblock Sw... Reid Kleckner via Phabricator via cfe-commits

Reply via email to