[PATCH] D40929: Unblock Swift Calling Convention Mangling on Windows
Thomas Roughton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 6 16:54:35 PST 2017
troughton updated this revision to Diff 125847.
troughton added a comment.
Add back a mistakenly removed default case.
Repository:
rC Clang
https://reviews.llvm.org/D40929
Files:
lib/AST/MicrosoftMangle.cpp
Index: lib/AST/MicrosoftMangle.cpp
===================================================================
--- lib/AST/MicrosoftMangle.cpp
+++ lib/AST/MicrosoftMangle.cpp
@@ -2131,9 +2131,12 @@
switch (CC) {
default:
- llvm_unreachable("Unsupported CC for mangling");
+ llvm::errs() << "Unsupported CC for mangling" << CC << ".\n";
case CC_Win64:
case CC_X86_64SysV:
+ // NOTE: SwiftCC should have its own mangling specifier.
+ // For now, don't do anything special and treat SwiftCC like __cdecl.
+ case CC_Swift:
case CC_C: Out << 'A'; break;
case CC_X86Pascal: Out << 'C'; break;
case CC_X86ThisCall: Out << 'E'; break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40929.125847.patch
Type: text/x-patch
Size: 672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171207/ce62bd62/attachment.bin>
More information about the cfe-commits
mailing list