I will save before I commit.
[oota-llvm.git] / tools / llvm-objdump / MCFunction.h
index 60f6429209256e467b627d17528b43e13fa36e87..f156e940118366f6ddfff7af19699987e781bbe6 100644 (file)
@@ -48,6 +48,8 @@ public:
   succ_iterator succ_begin() const { return Succs.begin(); }
   succ_iterator succ_end() const { return Succs.end(); }
 
+  bool contains(MCBasicBlock *BB) const { return Succs.count(BB); }
+
   void addInst(const MCDecodedInst &Inst) { Insts.push_back(Inst); }
   void addSucc(MCBasicBlock *BB) { Succs.insert(BB); }
 };