summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSIL/MSILWriter.cpp
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
commit8f35fabbc1b8fde8730f0aa14585a55649e2d86b (patch)
treec3500dd87b7dd4c41574ffd8c093adb465fe996d /llvm/lib/Target/MSIL/MSILWriter.cpp
parent4c719c45152ed0180f7e523138512d44a565daa8 (diff)
downloadbcm5719-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.cpp2
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");
OpenPOWER on IntegriCloud