allow branch reversal to fail

llvm-svn: 30943
This commit is contained in:
Chris Lattner 2006-10-13 20:59:31 +00:00
parent a45a08a706
commit 68b41e570e
1 changed files with 5 additions and 4 deletions

View File

@ -308,10 +308,11 @@ public:
assert(0 && "Target didn't implement TargetInstrInfo::RemoveBranch!"); assert(0 && "Target didn't implement TargetInstrInfo::RemoveBranch!");
} }
/// Reverses the branch condition of the MachineInstr pointed by /// ReverseBranchCondition - Reverses the branch condition of the specified
/// MI. The instruction is replaced and the new MI is returned. /// condition list, returning false on success and true if it cannot be
virtual void ReverseBranchCondition(std::vector<MachineOperand> &Cond) const { /// reversed.
assert(0 && "Target didn't implement ReverseBranchCondition!"); virtual bool ReverseBranchCondition(std::vector<MachineOperand> &Cond) const {
return true;
} }
/// insertNoop - Insert a noop into the instruction stream at the specified /// insertNoop - Insert a noop into the instruction stream at the specified