mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-19 11:23:32 +00:00
Adding support for Microsoft's thiscall calling convention. LLVM side of the patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -331,8 +331,8 @@ def CC_X86_32_ThisCall : CallingConv<[
|
||||
// Promote i8/i16 arguments to i32.
|
||||
CCIfType<[i8, i16], CCPromoteToType<i32>>,
|
||||
|
||||
// The 'nest' parameter, if any, is passed in EAX.
|
||||
CCIfNest<CCAssignToReg<[EAX]>>,
|
||||
// Pass sret arguments indirectly through EAX
|
||||
CCIfSRet<CCAssignToReg<[EAX]>>,
|
||||
|
||||
// The first integer argument is passed in ECX
|
||||
CCIfType<[i32], CCAssignToReg<[ECX]>>,
|
||||
|
||||
Reference in New Issue
Block a user