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/IA64InstrInfo.cpp | |
| 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/IA64InstrInfo.cpp')
| -rw-r--r-- | lib/Target/IA64/IA64InstrInfo.cpp | 8 |
1 files changed, 5 insertions, 3 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; } |
