summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430RegisterInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:10:40 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:10:40 +0000
commit875e1eb8ab7c6210f3d6d55d358e2c6a751f2cbb (patch)
tree73e8683496d81d90945859bdf94cf788078e94a3 /lib/Target/MSP430/MSP430RegisterInfo.cpp
parent40477317f39dccfd5c9c139feabda1becc6bd49c (diff)
downloadllvm-875e1eb8ab7c6210f3d6d55d358e2c6a751f2cbb.tar.gz
llvm-875e1eb8ab7c6210f3d6d55d358e2c6a751f2cbb.tar.bz2
llvm-875e1eb8ab7c6210f3d6d55d358e2c6a751f2cbb.tar.xz
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
Diffstat (limited to 'lib/Target/MSP430/MSP430RegisterInfo.cpp')
-rw-r--r--lib/Target/MSP430/MSP430RegisterInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp
index 264736bc83..1506515d97 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 {