Code insertion methods now return void instead of #instrs inserted
authorChris Lattner <sabre@nondot.org>
Sun, 15 Aug 2004 22:15:30 +0000 (22:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Aug 2004 22:15:30 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15781 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Skeleton/SkeletonRegisterInfo.cpp
lib/Target/Skeleton/SkeletonRegisterInfo.h

index 7c8ea1066e2c9cc2413fcf7308f9bfb97f5c5125..39aead95a8b5a6d7fbde84286686493d04b1f932 100644 (file)
@@ -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::
index 3bf5766d94b2a70d0803ce06a1b19ea230c6d8a0..3d6adbe4e4ce076a37b8dbbe731c36fb57865c2c 100644 (file)
@@ -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,