diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-03 23:39:13 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-03 23:39:13 +0000 |
commit | 62da588a2eb70166e1b6cc332d8084f03117dc12 (patch) | |
tree | 9f063531739d5b0497d0a97bafdfc9051ede345d /lib/Target/ARM/ARMCallingConv.td | |
parent | 7c2f3e8944717239b6031ebc778de4547e1449e2 (diff) | |
download | external_llvm-62da588a2eb70166e1b6cc332d8084f03117dc12.zip external_llvm-62da588a2eb70166e1b6cc332d8084f03117dc12.tar.gz external_llvm-62da588a2eb70166e1b6cc332d8084f03117dc12.tar.bz2 |
Have ARMBaseRegisterInfo::getCallPreservedMask return the 'correct' mask for the GHC calling convention.
This is purely academic because GHC calls are always tail calls so the register mask will never be used; however, this change makes the code clearer and brings the ARM implementation of the GHC calling convention in line with the X86 implementation. Also, it might save someone else some time trying to figuring out what is happening...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMCallingConv.td')
-rw-r--r-- | lib/Target/ARM/ARMCallingConv.td | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMCallingConv.td b/lib/Target/ARM/ARMCallingConv.td index 8ff666e..89c5223 100644 --- a/lib/Target/ARM/ARMCallingConv.td +++ b/lib/Target/ARM/ARMCallingConv.td @@ -208,9 +208,3 @@ def CSR_iOS : CalleeSavedRegs<(add LR, R7, R6, R5, R4, (sub CSR_AAPCS, R9))>; def CSR_iOS_ThisReturn : CalleeSavedRegs<(add LR, R7, R6, R5, R4, (sub CSR_AAPCS_ThisReturn, R9))>; - -// GHC set of callee saved regs is empty as all those regs are -// used for passing STG regs around -// add is a workaround for not being able to compile empty list: -// def CSR_GHC : CalleeSavedRegs<()>; -def CSR_GHC : CalleeSavedRegs<(add)>; |