diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-02-14 19:49:05 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-02-14 19:49:05 +0000 | 
| commit | 8604e7572132e8728a1e20d53965bc4ab6986818 (patch) | |
| tree | 98a95b963214881bb788d40de942c8dabb88c2a4 /include/llvm/Target | |
| parent | 50c372b3d9a71d6663264328ca8fa3527e5d07a5 (diff) | |
| download | external_llvm-8604e7572132e8728a1e20d53965bc4ab6986818.zip external_llvm-8604e7572132e8728a1e20d53965bc4ab6986818.tar.gz external_llvm-8604e7572132e8728a1e20d53965bc4ab6986818.tar.bz2  | |
The prologue/epilogue related method calls have no reason to return a value,
make them return void.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
| -rw-r--r-- | include/llvm/Target/MRegisterInfo.h | 21 | 
1 files changed, 10 insertions, 11 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index 7afc95b..5794003 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -260,14 +260,14 @@ public:    /// setup/destroy pseudo instructions. The return value is the number of    /// instructions added to (negative if removed from) the basic block.    /// -  virtual int eliminateCallFramePseudoInstr(MachineFunction &MF, -                                            MachineBasicBlock &MBB, -                                            MachineBasicBlock::iterator MI) const { +  virtual void  +  eliminateCallFramePseudoInstr(MachineFunction &MF, +                                MachineBasicBlock &MBB, +                                MachineBasicBlock::iterator MI) const {      assert(getCallFrameSetupOpcode()== -1 && getCallFrameDestroyOpcode()== -1 &&  	   "eliminateCallFramePseudoInstr must be implemented if using"  	   " call frame setup/destroy pseudo instructions!");      assert(0 && "Call Frame Pseudo Instructions do not exist on this target!"); -    return -1;    }    /// processFunctionBeforeFrameFinalized - This method is called immediately @@ -277,8 +277,7 @@ public:    /// is the number of instructions added to (negative if removed from) the    /// basic block    /// -  virtual int processFunctionBeforeFrameFinalized(MachineFunction &MF) const { -    return 0; +  virtual void processFunctionBeforeFrameFinalized(MachineFunction &MF) const {    }    /// eliminateFrameIndex - This method must be overriden to eliminate abstract @@ -289,16 +288,16 @@ public:    /// finished product. The return value is the number of instructions    /// added to (negative if removed from) the basic block.    /// -  virtual int eliminateFrameIndex(MachineFunction &MF, -                                  MachineBasicBlock::iterator MI) const = 0; +  virtual void eliminateFrameIndex(MachineFunction &MF, +                                   MachineBasicBlock::iterator MI) const = 0;    /// emitProlog/emitEpilog - These methods insert prolog and epilog code into    /// the function. The return value is the number of instructions    /// added to (negative if removed from) the basic block (entry for prologue).    /// -  virtual int emitPrologue(MachineFunction &MF) const = 0; -  virtual int emitEpilogue(MachineFunction &MF, -                           MachineBasicBlock &MBB) const = 0; +  virtual void emitPrologue(MachineFunction &MF) const = 0; +  virtual void emitEpilogue(MachineFunction &MF, +                            MachineBasicBlock &MBB) const = 0;  };  } // End llvm namespace  | 
