[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp PowerPCRegisterInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 14 13:50:01 PST 2004
Changes in directory llvm/lib/Target/PowerPC:
PowerPCRegisterInfo.cpp updated: 1.3 -> 1.4
PowerPCRegisterInfo.h updated: 1.3 -> 1.4
---
Log message:
The prologue/epilogue related method calls have no reason to return a value,
make them return void.
---
Diffs of the changes: (+20 -30)
Index: llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp:1.3 llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp:1.4
--- llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp:1.3 Thu Feb 12 02:11:04 2004
+++ llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp Sat Feb 14 13:49:25 2004
@@ -14,8 +14,7 @@
#include "PowerPC.h"
#include "PowerPCRegisterInfo.h"
#include "llvm/Type.h"
-
-namespace llvm {
+using namespace llvm;
PowerPCRegisterInfo::PowerPCRegisterInfo()
: PowerPCGenRegisterInfo(PowerPC::ADJCALLSTACKDOWN,
@@ -49,43 +48,35 @@
return -1;
}
-int PowerPCRegisterInfo::eliminateCallFramePseudoInstr(MachineFunction &MF,
- MachineBasicBlock &MBB,
- MachineBasicBlock::iterator I) const {
+void PowerPCRegisterInfo::
+eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
+ MachineBasicBlock::iterator I) const {
abort();
- return -1;
}
-int PowerPCRegisterInfo::eliminateFrameIndex(MachineFunction &MF,
- MachineBasicBlock::iterator II) const {
+void
+PowerPCRegisterInfo::eliminateFrameIndex(MachineFunction &MF,
+ MachineBasicBlock::iterator II) const {
abort();
- return -1;
}
-int PowerPCRegisterInfo::processFunctionBeforeFrameFinalized(
- MachineFunction &MF) const
-{
+void PowerPCRegisterInfo::processFunctionBeforeFrameFinalized(
+ MachineFunction &MF) const {
abort();
- return -1;
}
-int PowerPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
+void PowerPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
abort();
- return -1;
}
-int PowerPCRegisterInfo::emitEpilogue(MachineFunction &MF,
- MachineBasicBlock &MBB) const {
+void PowerPCRegisterInfo::emitEpilogue(MachineFunction &MF,
+ MachineBasicBlock &MBB) const {
abort();
- return -1;
}
-} // end namespace llvm
#include "PowerPCGenRegisterInfo.inc"
-namespace llvm {
-
const TargetRegisterClass*
PowerPCRegisterInfo::getRegClassForType(const Type* Ty) const {
switch (Ty->getPrimitiveID()) {
@@ -106,4 +97,3 @@
}
}
-} // end namespace llvm
Index: llvm/lib/Target/PowerPC/PowerPCRegisterInfo.h
diff -u llvm/lib/Target/PowerPC/PowerPCRegisterInfo.h:1.3 llvm/lib/Target/PowerPC/PowerPCRegisterInfo.h:1.4
--- llvm/lib/Target/PowerPC/PowerPCRegisterInfo.h:1.3 Thu Feb 12 02:11:04 2004
+++ llvm/lib/Target/PowerPC/PowerPCRegisterInfo.h Sat Feb 14 13:49:25 2004
@@ -40,17 +40,17 @@
unsigned DestReg, unsigned SrcReg,
const TargetRegisterClass *RC) const;
- int eliminateCallFramePseudoInstr(MachineFunction &MF,
- MachineBasicBlock &MBB,
- MachineBasicBlock::iterator I) const;
+ void eliminateCallFramePseudoInstr(MachineFunction &MF,
+ MachineBasicBlock &MBB,
+ MachineBasicBlock::iterator I) const;
- int eliminateFrameIndex(MachineFunction &MF,
- MachineBasicBlock::iterator II) const;
+ void eliminateFrameIndex(MachineFunction &MF,
+ MachineBasicBlock::iterator II) const;
- int processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
+ void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
- int emitPrologue(MachineFunction &MF) const;
- int emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
+ void emitPrologue(MachineFunction &MF) const;
+ void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
};
} // end namespace llvm
More information about the llvm-commits
mailing list