summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-05-16 09:08:45 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-05-16 09:08:45 +0000
commitded05e34b65dc42998e9db6ca1abd513e7a9d120 (patch)
tree99a79e3eafeb16d941ed4a14951ebc84b238730e /include
parent4878b8415fd524489b4bee5f90e969f6ccb253d4 (diff)
downloadllvm-ded05e34b65dc42998e9db6ca1abd513e7a9d120.tar.gz
llvm-ded05e34b65dc42998e9db6ca1abd513e7a9d120.tar.bz2
llvm-ded05e34b65dc42998e9db6ca1abd513e7a9d120.tar.xz
Add support for thiscall calling convention.
Patch by Charles Davis and Steven Watanabe! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103902 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CallingConv.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CallingConv.h b/include/llvm/CallingConv.h
index 624390d1cd..b0481b92ba 100644
--- a/include/llvm/CallingConv.h
+++ b/include/llvm/CallingConv.h
@@ -74,7 +74,12 @@ namespace CallingConv {
ARM_AAPCS_VFP = 68,
/// MSP430_INTR - Calling convention used for MSP430 interrupt routines.
- MSP430_INTR = 69
+ MSP430_INTR = 69,
+
+ /// X86_ThisCall - Similar to X86_StdCall. Passes first argument in ECX,
+ /// others via stack. Callee is responsible for stack cleaning. MSVC uses
+ /// this by default for methods in its ABI.
+ X86_ThisCall = 70
};
} // End CallingConv namespace