]> granicus.if.org Git - clang/commit
On 32 bit windows, mangle stdcall and fastcall decls in clang.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Oct 2013 01:40:34 +0000 (01:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Oct 2013 01:40:34 +0000 (01:40 +0000)
commitd6be277ba4bf271c6de8ffcc8c46f060c8cbd4d5
treef9ab0a0466e03f7f692bbf76ccd2f73bcb4982fc
parent7a3dfcdfb32c08f2f6f4a90a097bb240fdc1a94c
On 32 bit windows, mangle stdcall and fastcall decls in clang.

This removes the dependency on the llvm mangler doing it for us. In isolation,
the benefit is that the testing of what mangling is applied is all in one place:
(C, C++) X (Itanium, Microsoft) are all handled by clang.

This also gives me hope that in the future the llvm mangler (and llvm-ar) will
not depend on TargetMachine.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192762 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Mangle.h
lib/AST/ItaniumMangle.cpp
lib/AST/Mangle.cpp
lib/AST/MicrosoftMangle.cpp
test/CodeGen/mangle-windows-rtd.c [new file with mode: 0644]
test/CodeGen/mangle-windows.c [new file with mode: 0644]
test/CodeGenCXX/mangle-windows.cpp [new file with mode: 0644]