]> granicus.if.org Git - clang/commit
Merging r367039 and r367103:
authorHans Wennborg <hans@hanshq.net>
Fri, 26 Jul 2019 16:45:43 +0000 (16:45 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 26 Jul 2019 16:45:43 +0000 (16:45 +0000)
commit5e63c7348448dbe0195c8af64788638fa816292d
treecd6d81442dd1c20f9eb71368e7942004f1ec57da
parent28c954cf961a846789a972a8ed179b7108244ae7
Merging r367039 and r367103:
------------------------------------------------------------------------
r367039 | erichkeane | 2019-07-25 19:14:45 +0200 (Thu, 25 Jul 2019) | 6 lines

Remove CallingConvMethodType

This seems to be an old vestage of a previous implementation of getting
the default calling convention, and everything is now using
CXXABI/ASTContext's getDefaultCallingConvention.  Remove it, since it
isn't doing anything.
------------------------------------------------------------------------

------------------------------------------------------------------------
r367103 | erichkeane | 2019-07-26 14:36:12 +0200 (Fri, 26 Jul 2019) | 6 lines

Make the CXXABIs respect the target's default calling convention.

SPIR targets need to have all functions be SPIR calling convention,
however the CXXABIs were just returning CC_C in all non-'this-CC' cases.

https://reviews.llvm.org/D65294
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_90@367129 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/Basic/TargetInfo.h
lib/AST/ASTContext.cpp
lib/AST/ItaniumCXXABI.cpp
lib/AST/MicrosoftCXXABI.cpp
lib/Basic/Targets/SPIR.h
lib/Basic/Targets/X86.h
test/CodeGenOpenCLCXX/addrspace-derived-base.cl
test/CodeGenOpenCLCXX/addrspace-of-this.cl
test/CodeGenOpenCLCXX/addrspace-operators.cl
test/CodeGenOpenCLCXX/addrspace-with-class.cl
test/CodeGenOpenCLCXX/method-overload-address-space.cl
test/CodeGenOpenCLCXX/template-address-spaces.cl