diff options
author | Guy Benyei <guy.benyei@intel.com> | 2013-01-10 10:41:05 +0000 |
---|---|---|
committer | Guy Benyei <guy.benyei@intel.com> | 2013-01-10 10:41:05 +0000 |
commit | 7266cf6464bc3ec65044c5783df739cfe7b6cd61 (patch) | |
tree | a1e8270a6e445e1ffc4aa0ad6330b33b83fa67f9 /lib/Basic/Targets.cpp | |
parent | 4c60fc6cb9928fe03b6b4794260edb779b2c44e1 (diff) |
Enable intel_ocl_bicc for x86_64 target only. Remove fix from 171969 that enabled this extension for multiple targets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index f79aec3c5c..3426262b2a 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -2895,7 +2895,9 @@ public: } virtual CallingConvCheckResult checkCallingConvention(CallingConv CC) const { - return TargetInfo::checkCallingConvention(CC); + return (CC == CC_Default || + CC == CC_C || + CC == CC_IntelOclBicc) ? CCCR_OK : CCCR_Warning; } virtual CallingConv getDefaultCallingConv(CallingConvMethodType MT) const { |