aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/CBackend/CBackend.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/CBackend/CBackend.cpp
parent4c719c45152ed0180f7e523138512d44a565daa8 (diff)
downloadllvm-8f35fabbc1b8fde8730f0aa14585a55649e2d86b.zip
llvm-8f35fabbc1b8fde8730f0aa14585a55649e2d86b.tar.gz
llvm-8f35fabbc1b8fde8730f0aa14585a55649e2d86b.tar.bz2
Add support for thiscall calling convention.
Patch by Charles Davis and Steven Watanabe! llvm-svn: 103902
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index cc9e1d7..55b8aaa 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -2165,6 +2165,9 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
case CallingConv::X86_FastCall:
Out << "__attribute__((fastcall)) ";
break;
+ case CallingConv::X86_ThisCall:
+ Out << "__attribute__((thiscall)) ";
+ break;
default:
break;
}