Add new calling convention, as documented in LangRef.html
authorChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 21:19:02 +0000 (21:19 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 21:19:02 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28404 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CallingConv.h

index fd62fb73030d2f3a521836bafb4e7fc7a4dea397..568154b12d09fbc7488a55ecb7cd13bc1ff35206 100644 (file)
@@ -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