Add MachineBasicBlock::isPredecessor().
[oota-llvm.git] / include / llvm / CodeGen / MachineBasicBlock.h
index 4371aa5261d9d12c8f30b3ce6dba9dabea2ef6e4..c917bd8b818393ceeae3347885f61e49ee8f775d 100644 (file)
@@ -379,6 +379,10 @@ public:
   /// which refer to fromMBB to refer to this.
   void transferSuccessorsAndUpdatePHIs(MachineBasicBlock *fromMBB);
 
+  /// isPredecessor - Return true if the specified MBB is a predecessor of this
+  /// block.
+  bool isPredecessor(const MachineBasicBlock *MBB) const;
+
   /// isSuccessor - Return true if the specified MBB is a successor of this
   /// block.
   bool isSuccessor(const MachineBasicBlock *MBB) const;