diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-10-24 17:42:17 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-10-24 17:42:17 +0000 |
commit | cb348a9ab7cab044fc4e64f9168b6a1931c64e9f (patch) | |
tree | 4593e2d91442fc7e81d25a1dc60f6d711452aa35 /lib/Basic | |
parent | 618ea90f84dd62693b24270a1b4faa681ba085a0 (diff) |
Add frontend support for __vectorcall
Wire it through everywhere we have support for fastcall, essentially.
This allows us to parse the MSVC "14" CTP headers, but we will
miscompile them because LLVM doesn't support __vectorcall yet.
Reviewed By: Aaron Ballman
Differential Revision: http://reviews.llvm.org/D5808
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r-- | lib/Basic/Targets.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 957448a2d4..4604b1cfa0 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -2095,8 +2095,9 @@ public: // We accept all non-ARM calling conventions return (CC == CC_X86ThisCall || CC == CC_X86FastCall || - CC == CC_X86StdCall || - CC == CC_C || + CC == CC_X86StdCall || + CC == CC_X86VectorCall || + CC == CC_C || CC == CC_X86Pascal || CC == CC_IntelOclBicc) ? CCCR_OK : CCCR_Warning; } |