Go to file
Reid Kleckner 1c843228f8 [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

llvm-svn: 200561
2014-01-31 17:41:22 +00:00
clang Last option on -fexception for arm-disable-ehabi 2014-01-31 16:19:26 +00:00
clang-tools-extra check-clang-tools: Also it doesn't require neither llvm_src_root nor llvm_obj_root. 2014-01-26 12:40:18 +00:00
compiler-rt [ASan] Implement __sanitizer::InstallDeadlySignalHandlers() and __asan::AsanOnSIGSEGV() on Windows. 2014-01-31 15:11:11 +00:00
debuginfo-tests don't use CHECK-NEXT because it may be on the same line. 2013-09-18 23:01:54 +00:00
libclc Updated README.TXT with information about using DESTDIR and building with Ninja. 2014-01-29 20:03:28 +00:00
libcxx Remove default function template argument from the header. 2014-01-31 09:30:46 +00:00
libcxxabi [libunwind] remove stray conditional 2014-01-30 00:27:16 +00:00
lld MSVC2012 does not choose to use uint64_t as underlying type without this. 2014-01-31 06:28:32 +00:00
lldb Add libs needed by iohandler merge to Makefile for FreeBSD 2014-01-31 14:30:11 +00:00
llvm [ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret' 2014-01-31 17:41:22 +00:00
openmp For your Christmas hacking pleasure. 2013-12-23 17:28:57 +00:00
polly IndependentBlocks: Do not assert for PHI nodes outside of scops 2014-01-29 23:08:10 +00:00