diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-05-18 00:05:48 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-18 00:05:48 +0000 |
| commit | b5cdaa257e167a08a8a54ea9249d847ccc415ce0 (patch) | |
| tree | eb8bcd2531e39b2725150f6001c1ed31ccfa07d8 /lib/Target/IA64 | |
| parent | f48ae4630bdf5c58dfca8f4d82a1ee1a88c3a767 (diff) | |
| download | external_llvm-b5cdaa257e167a08a8a54ea9249d847ccc415ce0.zip external_llvm-b5cdaa257e167a08a8a54ea9249d847ccc415ce0.tar.gz external_llvm-b5cdaa257e167a08a8a54ea9249d847ccc415ce0.tar.bz2 | |
RemoveBranch() and InsertBranch() now returns number of instructions deleted / inserted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/IA64')
| -rw-r--r-- | lib/Target/IA64/IA64InstrInfo.cpp | 8 | ||||
| -rw-r--r-- | lib/Target/IA64/IA64InstrInfo.h | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/Target/IA64/IA64InstrInfo.cpp b/lib/Target/IA64/IA64InstrInfo.cpp index aabdee3..a66c9bc 100644 --- a/lib/Target/IA64/IA64InstrInfo.cpp +++ b/lib/Target/IA64/IA64InstrInfo.cpp @@ -47,10 +47,12 @@ bool IA64InstrInfo::isMoveInstr(const MachineInstr& MI, // move instruction } -void IA64InstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, - MachineBasicBlock *FBB, - const std::vector<MachineOperand> &Cond)const { +unsigned +IA64InstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, + MachineBasicBlock *FBB, + const std::vector<MachineOperand> &Cond)const { // Can only insert uncond branches so far. assert(Cond.empty() && !FBB && TBB && "Can only handle uncond branches!"); BuildMI(&MBB, get(IA64::BRL_NOTCALL)).addMBB(TBB); + return 1; } diff --git a/lib/Target/IA64/IA64InstrInfo.h b/lib/Target/IA64/IA64InstrInfo.h index ceb5c29..3bb14e0 100644 --- a/lib/Target/IA64/IA64InstrInfo.h +++ b/lib/Target/IA64/IA64InstrInfo.h @@ -37,9 +37,9 @@ public: virtual bool isMoveInstr(const MachineInstr& MI, unsigned& sourceReg, unsigned& destReg) const; - virtual void InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, - MachineBasicBlock *FBB, - const std::vector<MachineOperand> &Cond) const; + virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, + MachineBasicBlock *FBB, + const std::vector<MachineOperand> &Cond) const; }; |
