From 875e1eb8ab7c6210f3d6d55d358e2c6a751f2cbb Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sun, 3 May 2009 13:10:40 +0000 Subject: [PATCH] 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 --- lib/Target/MSP430/MSP430RegisterInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {