Reid Kleckner 65c98b9da4 [ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret'
MSVC always places the 'this' parameter for a method first.  The
implicit 'sret' pointer for methods always comes second.  We already
implement this for __thiscall by putting sret parameters on the stack,
but __cdecl methods require putting both parameters on the stack in
opposite order.

Using a special calling convention allows frontends to keep the sret
parameter first, which avoids breaking lots of assumptions in LLVM and
Clang.

Fixes PR15768 with the corresponding change in Clang.

Reviewers: ributzka, majnemer

Differential Revision: http://llvm-reviews.chandlerc.com/D2663

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200561 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31 17:41:22 +00:00
..
2014-01-16 08:45:54 +00:00
2014-01-11 21:06:00 +00:00
2014-01-11 21:06:00 +00:00
2014-01-16 06:31:20 +00:00
2014-01-24 17:20:08 +00:00
2013-12-11 08:38:42 +00:00
2013-12-11 08:38:42 +00:00
2013-12-16 14:36:50 +00:00
2014-01-24 17:20:08 +00:00
2013-11-14 06:05:49 +00:00
2013-12-11 04:10:41 +00:00
2013-12-03 09:17:32 +00:00
2013-11-02 00:10:02 +00:00
2013-11-22 17:56:57 +00:00
2013-11-25 18:05:22 +00:00
2013-11-26 20:31:31 +00:00
2013-10-31 17:50:45 +00:00
2014-01-24 17:20:08 +00:00
2013-11-17 10:53:19 +00:00
2013-12-17 12:07:33 +00:00
2014-01-11 21:06:00 +00:00
2013-12-05 05:44:44 +00:00