[llvm-commits] [llvm] r70738 - /llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sun May 3 06:10:40 PDT 2009
Author: asl
Date: Sun May 3 08:10:40 2009
New Revision: 70738
URL: http://llvm.org/viewvc/llvm-project?rev=70738&view=rev
Log:
Two more hooks for RA and FP registers
Modified:
llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp?rev=70738&r1=70737&r2=70738&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp Sun May 3 08:10:40 2009
@@ -211,11 +211,11 @@
}
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 {
More information about the llvm-commits
mailing list