]> granicus.if.org Git - clang/commit
Windows ARM: ignore calling conventions as described on MSDN
authorMartell Malone <martellmalone@gmail.com>
Fri, 14 Aug 2015 18:00:09 +0000 (18:00 +0000)
committerMartell Malone <martellmalone@gmail.com>
Fri, 14 Aug 2015 18:00:09 +0000 (18:00 +0000)
commitdffa3701c7632dc66cb8a1cc120ca11bd34a8673
treea9b990b53269fdbcfaa5b1dcc38adffd286e9f68
parent8cfc9bb3dcd9f129a8b98cdf980b0d7be6b607bf
Windows ARM: ignore calling conventions as described on MSDN

Summary:
MSDN says that fastcall, stdcall, thiscall, and vectorcall are all
accepted but ignored on ARM and X64.
https://msdn.microsoft.com/en-us/library/984x0h58.aspx

MSDN also says cdecl is also accepted and typically ignored
This patch brings ARM in line with how we ignore them for X64

Reviewers: rnk

Subscribers: compnerd, cfe-commits

Differential Revision: http://reviews.llvm.org/D12034

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245076 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Parser/arm-windows-calling-convention-handling.c
test/Parser/x64-windows-calling-convention-handling.c [new file with mode: 0644]