mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
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
This commit is contained in:
@@ -278,6 +278,8 @@ std::string MSILWriter::getConvModopt(CallingConv::ID CallingConvID) {
|
||||
return "modopt([mscorlib]System.Runtime.CompilerServices.CallConvFastcall) ";
|
||||
case CallingConv::X86_StdCall:
|
||||
return "modopt([mscorlib]System.Runtime.CompilerServices.CallConvStdcall) ";
|
||||
case CallingConv::X86_ThisCall:
|
||||
return "modopt([mscorlib]System.Runtime.CompilerServices.CallConvThiscall) ";
|
||||
default:
|
||||
errs() << "CallingConvID = " << CallingConvID << '\n';
|
||||
llvm_unreachable("Unsupported calling convention");
|
||||
|
||||
Reference in New Issue
Block a user