Revert "[ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret'"
authorReid Kleckner <reid@kleckner.net>
Fri, 9 May 2014 22:56:42 +0000 (22:56 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 9 May 2014 22:56:42 +0000 (22:56 +0000)
commitd30c11eddee0c6f17a65303c249b77d14962c973
treea204ca35123d20da51f2add45cfad7bc9bb6fda2
parent754e940865aaf63be79dcb921572eff4b1042c7c
Revert "[ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret'"

This reverts commit r200561.

This calling convention was an attempt to match the MSVC C++ ABI for
methods that return structures by value.  This solution didn't scale,
because it would have required splitting every CC available on Windows
into two: one for methods and one for free functions.

Now that we can put sret on the second arg (r208453), and Clang does
that (r208458), revert this hack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208459 91177308-0d34-0410-b5e6-96231b3b80d8
docs/BitCodeFormat.rst
docs/CodeGenerator.rst
include/llvm/IR/CallingConv.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/IR/AsmWriter.cpp
lib/Target/X86/X86CallingConv.h
lib/Target/X86/X86CallingConv.td
test/CodeGen/X86/cdecl-method-return.ll [deleted file]