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 | 5e8bd88711d23b2a5db79f43580afebdfd10a394 (patch) | |
tree | e296efbc729aa7ddc371c93ba3094ba3848a103f /include/clang-c | |
parent | dc4b244bbdddbabdcdc66306a5fbb12470cbf4d8 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 9c5c6807b2..a564af88b2 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -2971,6 +2971,8 @@ enum CXCallingConv { CXCallingConv_X86_64SysV = 11, CXCallingConv_X86VectorCall = 12, CXCallingConv_Swift = 13, + CXCallingConv_PreserveMost = 14, + CXCallingConv_PreserveAll = 15, CXCallingConv_Invalid = 100, CXCallingConv_Unexposed = 200 |