Win64: Silently ignore __stdcall, __fastcall, and __thiscall
authorReid Kleckner <reid@kleckner.net>
Thu, 26 Feb 2015 19:43:46 +0000 (19:43 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 26 Feb 2015 19:43:46 +0000 (19:43 +0000)
commit9fde2e013ee0892ef02f9278db4ff4de270b970a
tree5e0f672997bfd1df9be0c71c4541a4910d76e169
parente81017248cc274393cdb1cfb1d9fd4cda80d55b9
Win64: Silently ignore __stdcall, __fastcall, and __thiscall

MSVC doesn't warn on this. Users are expected to apply the WINAPI macro
to functions passed by pointer to the Win32 API, and this macro expands
to __stdcall. This means we end up with a lot of useless noisy warnings
about ignored calling conventions when compiling code with clang for
Win64.

llvm-svn: 230668
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/Targets.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Sema/MicrosoftCompatibility-x64.c