From: Anton Korobeynikov Date: Sun, 3 May 2009 13:10:40 +0000 (+0000) Subject: Two more hooks for RA and FP registers X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=875e1eb8ab7c6210f3d6d55d358e2c6a751f2cbb;p=oota-llvm.git Two more hooks for RA and FP registers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70738 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp index 264736bc830..1506515d97a 100644 --- a/lib/Target/MSP430/MSP430RegisterInfo.cpp +++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp @@ -211,11 +211,11 @@ void MSP430RegisterInfo::emitEpilogue(MachineFunction &MF, } unsigned MSP430RegisterInfo::getRARegister() const { - assert(0 && "Not implemented yet!"); + return MSP430::PCW; } unsigned MSP430RegisterInfo::getFrameRegister(MachineFunction &MF) const { - assert(0 && "Not implemented yet!"); + return hasFP(MF) ? MSP430::FPW : MSP430::SPW; } int MSP430RegisterInfo::getDwarfRegNum(unsigned RegNum, bool isEH) const {