diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-12 08:11:04 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-12 08:11:04 +0000 |
commit | 024126ee23e6e4430a77025b61d0e713180f03d3 (patch) | |
tree | 13607fe44093211c6446fd79e4136095baae5f74 /include | |
parent | 0eda78a3729a917592a89ede933d7b7df82e0dc3 (diff) | |
download | llvm-024126ee23e6e4430a77025b61d0e713180f03d3.tar.gz llvm-024126ee23e6e4430a77025b61d0e713180f03d3.tar.bz2 llvm-024126ee23e6e4430a77025b61d0e713180f03d3.tar.xz |
Change interface so that we can add to the end of a basic block
without getting an assertion from ilist that we are dereferencing
ilist<T>::end().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/MRegisterInfo.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index 61c594ceb3..7afc95b95f 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -17,11 +17,11 @@ #define LLVM_TARGET_MREGISTERINFO_H #include <cassert> +#include "llvm/CodeGen/MachineBasicBlock.h" namespace llvm { class Type; -class MachineBasicBlock; class MachineFunction; class MachineInstr; @@ -227,17 +227,17 @@ public: // virtual int storeRegToStackSlot(MachineBasicBlock &MBB, - MachineInstr* MI, + MachineBasicBlock::iterator MI, unsigned SrcReg, int FrameIndex, const TargetRegisterClass *RC) const = 0; virtual int loadRegFromStackSlot(MachineBasicBlock &MBB, - MachineInstr* MI, + MachineBasicBlock::iterator MI, unsigned DestReg, int FrameIndex, const TargetRegisterClass *RC) const = 0; virtual int copyRegToReg(MachineBasicBlock &MBB, - MachineInstr* MI, + MachineBasicBlock::iterator MI, unsigned DestReg, unsigned SrcReg, const TargetRegisterClass *RC) const = 0; @@ -262,7 +262,7 @@ public: /// virtual int eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, - MachineInstr* MI) const { + MachineBasicBlock::iterator MI) const { assert(getCallFrameSetupOpcode()== -1 && getCallFrameDestroyOpcode()== -1 && "eliminateCallFramePseudoInstr must be implemented if using" " call frame setup/destroy pseudo instructions!"); @@ -290,7 +290,7 @@ public: /// added to (negative if removed from) the basic block. /// virtual int eliminateFrameIndex(MachineFunction &MF, - MachineInstr* MI) const = 0; + 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 |