]> granicus.if.org Git - clang/commit
Mangle calling conventions into function pointer types where GCC does
authorReid Kleckner <rnk@google.com>
Fri, 14 Dec 2018 23:42:59 +0000 (23:42 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 14 Dec 2018 23:42:59 +0000 (23:42 +0000)
commit64edf237781c8205a87368b4642af7ee8df0f505
treeed4605bf722be7e7a00418bce792aac7a672e706
parentdbc2921ae291f4c4cd719e04cdad35941913fca3
Mangle calling conventions into function pointer types where GCC does

Summary:
GCC 5.1 began mangling these Windows calling conventions into function
types, since they can be used for overloading. They've always been
mangled in the MS ABI, but they are new to the Itanium mangler. Note
that the calling convention doesn't appear as part of the main
declaration, it only appears on function parameter types and other
types.

Fixes PR39860

Reviewers: rjmccall, efriedma

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D55672

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349212 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ItaniumMangle.cpp
test/CodeGenCXX/mangle-win-ccs.cpp [new file with mode: 0644]
test/CodeGenCXX/mangle-win64-ccs.cpp [new file with mode: 0644]