diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-08-15 22:15:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-08-15 22:15:30 +0000 |
| commit | 772f0d4106c2f5b77f25a547265b5578d2446374 (patch) | |
| tree | b4016e5e4df9bf236736f23a12ad644828e81200 /llvm/lib | |
| parent | a0b38d3cb18fad908b3f50b4c5470908a8bc68c1 (diff) | |
| download | bcm5719-llvm-772f0d4106c2f5b77f25a547265b5578d2446374.tar.gz bcm5719-llvm-772f0d4106c2f5b77f25a547265b5578d2446374.zip | |
Code insertion methods now return void instead of #instrs inserted
llvm-svn: 15781
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp | 15 | ||||
| -rw-r--r-- | llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h | 18 |
2 files changed, 15 insertions, 18 deletions
diff --git a/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp b/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp index 7c8ea1066e2..39aead95a8b 100644 --- a/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp +++ b/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp @@ -20,26 +20,23 @@ SkeletonRegisterInfo::SkeletonRegisterInfo() : SkeletonGenRegisterInfo(Skeleton::ADJCALLSTACKDOWN, Skeleton::ADJCALLSTACKUP) {} -int SkeletonRegisterInfo:: +void SkeletonRegisterInfo:: storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned SrcReg, int FrameIdx) const { abort(); - return -1; } -int SkeletonRegisterInfo:: +void SkeletonRegisterInfo:: loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned DestReg, int FrameIdx) const { abort(); - return -1; } -int SkeletonRegisterInfo::copyRegToReg(MachineBasicBlock &MBB, - MachineBasicBlock::iterator MBBI, - unsigned DestReg, unsigned SrcReg, - const TargetRegisterClass *RC) const { +void SkeletonRegisterInfo::copyRegToReg(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MBBI, + unsigned DestReg, unsigned SrcReg, + const TargetRegisterClass *RC) const { abort(); - return -1; } void SkeletonRegisterInfo:: diff --git a/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h b/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h index 3bf5766d94b..3d6adbe4e4c 100644 --- a/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h +++ b/llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h @@ -25,17 +25,17 @@ namespace llvm { const TargetRegisterClass* getRegClassForType(const Type* Ty) const; // See MRegisterInfo.h for information on these methods. - int storeRegToStackSlot(MachineBasicBlock &MBB, - MachineBasicBlock::iterator MBBI, - unsigned SrcReg, int FrameIndex) const; - - int loadRegFromStackSlot(MachineBasicBlock &MBB, + void storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, - unsigned DestReg, int FrameIndex) const; + unsigned SrcReg, int FrameIndex) const; + + void loadRegFromStackSlot(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MBBI, + unsigned DestReg, int FrameIndex) const; - int copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, - unsigned DestReg, unsigned SrcReg, - const TargetRegisterClass *RC) const; + void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, + unsigned DestReg, unsigned SrcReg, + const TargetRegisterClass *RC) const; void eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, |

