aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-03 00:05:53 +0000
committerEric Christopher <echristo@apple.com>2012-08-03 00:05:53 +0000
commite94ac8871a1ac79bece57335d2abece0feed9c02 (patch)
tree94ce9ea1213cfeeef7e972cfc1367a0aafcc576c /lib/Target/ARM/ARMFastISel.cpp
parent7b07d69958b865bb83500f0a8dc348a62969e7a8 (diff)
downloadexternal_llvm-e94ac8871a1ac79bece57335d2abece0feed9c02.tar.gz
external_llvm-e94ac8871a1ac79bece57335d2abece0feed9c02.tar.bz2
external_llvm-e94ac8871a1ac79bece57335d2abece0feed9c02.zip
Add support for the ARM GHC calling convention, this patch was in 3.0,
but somehow managed to be dropped later. Patch by Karel Gardas. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161226 91177308-0d34-0410-b5e6-96231b3b80d8
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 b96395f4e1..ca8ffea9fc 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -1842,6 +1842,11 @@ CCAssignFn *ARMFastISel::CCAssignFnForCall(CallingConv::ID CC,
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;
}
}