diff options
author | Roman Levenstein <rlevenstein@apple.com> | 2016-03-16 18:00:46 +0000 |
---|---|---|
committer | Roman Levenstein <rlevenstein@apple.com> | 2016-03-16 18:00:46 +0000 |
commit | 35aa5cecf25162f4a88cdf1dbfe3f8fc3ed1a91c (patch) | |
tree | cd10e5f88885e6322f34eff7c85816a107616cbc /clang/tools/libclang | |
parent | be37e62e0ceb6ba6777b8bd50924a4cc4cfa3f7d (diff) | |
download | bcm5719-llvm-35aa5cecf25162f4a88cdf1dbfe3f8fc3ed1a91c.tar.gz bcm5719-llvm-35aa5cecf25162f4a88cdf1dbfe3f8fc3ed1a91c.zip |
Add attributes for preserve_mostcc/preserve_allcc calling conventions to the C/C++ front-end
Till now, preserve_mostcc/preserve_allcc calling convention attributes were only
available at the LLVM IR level. This patch adds attributes for
preserve_mostcc/preserve_allcc calling conventions to the C/C++ front-end.
The code was mostly written by Juergen Ributzka.
I just added support for the AArch64 target and tests.
Differential Revision: http://reviews.llvm.org/D18025
llvm-svn: 263647
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r-- | clang/tools/libclang/CXType.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXType.cpp b/clang/tools/libclang/CXType.cpp index fce749c1e13..5cde2360552 100644 --- a/clang/tools/libclang/CXType.cpp +++ b/clang/tools/libclang/CXType.cpp @@ -534,6 +534,8 @@ CXCallingConv clang_getFunctionTypeCallingConv(CXType X) { TCALLINGCONV(AAPCS_VFP); TCALLINGCONV(IntelOclBicc); TCALLINGCONV(Swift); + TCALLINGCONV(PreserveMost); + TCALLINGCONV(PreserveAll); case CC_SpirFunction: return CXCallingConv_Unexposed; case CC_SpirKernel: return CXCallingConv_Unexposed; break; |