aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CallingConv.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-19 21:19:02 +0000
committerChris Lattner <sabre@nondot.org>2006-05-19 21:19:02 +0000
commit91b18484ae2572afd57b6701c830065f620fbf55 (patch)
treefcd5d36f3108949a1da14afc5ca1671f22b89262 /include/llvm/CallingConv.h
parent5710ce915e9fe6a379d402b521e97f7b7091150a (diff)
downloadexternal_llvm-91b18484ae2572afd57b6701c830065f620fbf55.zip
external_llvm-91b18484ae2572afd57b6701c830065f620fbf55.tar.gz
external_llvm-91b18484ae2572afd57b6701c830065f620fbf55.tar.bz2
Add new calling convention, as documented in LangRef.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CallingConv.h')
-rw-r--r--include/llvm/CallingConv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CallingConv.h b/include/llvm/CallingConv.h
index fd62fb7..568154b 100644
--- a/include/llvm/CallingConv.h
+++ b/include/llvm/CallingConv.h
@@ -27,6 +27,13 @@ namespace CallingConv {
// As with typical C calling conventions, the callee/caller have to tolerate
// certain amounts of prototype mismatch.
C = 0,
+
+ /// CSRet - C Struct Return calling convention. This convention requires
+ /// that the function return void and take a pointer as the first argument
+ /// of the struct. This is used by targets which need to distinguish
+ /// between C functions returning a structure, and C functions taking a
+ /// structure pointer as the first argument to the function.
+ CSRet = 1,
// Generic LLVM calling conventions. None of these calling conventions