From: Evan Cheng Date: Sat, 25 Jan 2014 19:51:19 +0000 (+0000) Subject: Clean up hack which is no longer needed after r198617. No functionality change. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4faaca183632845c269ef60fb7c352743e7ba9ae;p=oota-llvm.git Clean up hack which is no longer needed after r198617. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200095 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index 79f975e3ae2..0b3e2222439 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -51,7 +51,7 @@ ARMBaseRegisterInfo::ARMBaseRegisterInfo(const ARMSubtarget &sti) const uint16_t* ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { - const uint16_t *RegList = (STI.isTargetIOS() && !STI.isAAPCS_ABI()) + const uint16_t *RegList = STI.isTargetIOS() ? CSR_iOS_SaveList : CSR_AAPCS_SaveList; @@ -86,8 +86,7 @@ ARMBaseRegisterInfo::getCallPreservedMask(CallingConv::ID CC) const { if (CC == CallingConv::GHC) // This is academic becase all GHC calls are (supposed to be) tail calls return CSR_NoRegs_RegMask; - return (STI.isTargetIOS() && !STI.isAAPCS_ABI()) - ? CSR_iOS_RegMask : CSR_AAPCS_RegMask; + return STI.isTargetIOS() ? CSR_iOS_RegMask : CSR_AAPCS_RegMask; } const uint32_t*