diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-05-16 09:08:45 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-05-16 09:08:45 +0000 |
commit | 8f35fabbc1b8fde8730f0aa14585a55649e2d86b (patch) | |
tree | c3500dd87b7dd4c41574ffd8c093adb465fe996d /llvm/lib/Target/MSIL/MSILWriter.cpp | |
parent | 4c719c45152ed0180f7e523138512d44a565daa8 (diff) | |
download | bcm5719-llvm-8f35fabbc1b8fde8730f0aa14585a55649e2d86b.tar.gz bcm5719-llvm-8f35fabbc1b8fde8730f0aa14585a55649e2d86b.zip |
Add support for thiscall calling convention.
Patch by Charles Davis and Steven Watanabe!
llvm-svn: 103902
Diffstat (limited to 'llvm/lib/Target/MSIL/MSILWriter.cpp')
-rw-r--r-- | llvm/lib/Target/MSIL/MSILWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp index 332a150e6c4..3de173cc26c 100644 --- a/llvm/lib/Target/MSIL/MSILWriter.cpp +++ b/llvm/lib/Target/MSIL/MSILWriter.cpp @@ -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"); |