diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-04-02 22:25:50 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-04-02 22:25:50 +0000 |
commit | 13aeee0d36199e0c54c1b045540383d8383b030c (patch) | |
tree | 16ffefc1d8f34681c7bd921f4dce61aa974de645 /clang/lib/AST/MicrosoftMangle.cpp | |
parent | 30b215e8f742a6d2ef155aec9887f49c3e9ad501 (diff) | |
download | bcm5719-llvm-13aeee0d36199e0c54c1b045540383d8383b030c.tar.gz bcm5719-llvm-13aeee0d36199e0c54c1b045540383d8383b030c.zip |
CodeGenCXX: support PreserveMostCC in MS ABI
Microsoft has reserved 'U' for the PreserveMostCC which is used in the
swift runtime. Add support for this. This allows the swift runtime to
be built for Windows again.
llvm-svn: 329025
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 9d49e0f1799..046c8fd7f75 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -2184,6 +2184,7 @@ void MicrosoftCXXNameMangler::mangleCallingConvention(CallingConv CC) { case CC_X86FastCall: Out << 'I'; break; case CC_X86VectorCall: Out << 'Q'; break; case CC_Swift: Out << 'S'; break; + case CC_PreserveMost: Out << 'U'; break; case CC_X86RegCall: Out << 'w'; break; } } |