summaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-09 18:27:22 +0000
committerdim <dim@FreeBSD.org>2011-12-09 18:27:22 +0000
commit07637c87f826cdf411f0673595e9bc92ebd793f2 (patch)
treed5baf24dba561bcf8bc6ec60db36bfc5586f6378 /lib/Target/ARM/ARMFastISel.cpp
parent7b3392326c40c3c20697816acae597ba7b3144eb (diff)
downloadFreeBSD-src-07637c87f826cdf411f0673595e9bc92ebd793f2.zip
FreeBSD-src-07637c87f826cdf411f0673595e9bc92ebd793f2.tar.gz
Vendor import of llvm 3.0 final release:
http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_30/final@145349
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 9bc7ef2..dc8e54d 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -1548,6 +1548,11 @@ CCAssignFn *ARMFastISel::CCAssignFnForCall(CallingConv::ID CC, bool Return) {
return (Return ? RetCC_ARM_AAPCS: CC_ARM_AAPCS);
case CallingConv::ARM_APCS:
return (Return ? RetCC_ARM_APCS: CC_ARM_APCS);
+ case CallingConv::GHC:
+ if (Return)
+ llvm_unreachable("Can't return in GHC call convention");
+ else
+ return CC_ARM_APCS_GHC;
}
}
OpenPOWER on IntegriCloud