diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-25 23:10:23 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-25 23:10:23 +0000 |
commit | 9ea35e470cc8b3faedd6f79ea709926fa9fe012a (patch) | |
tree | 7b5467654d4185338b5bf314681d13417da8be50 /llvm/tools/llvm-objdump/MCFunction.h | |
parent | 475c6dbef631ab828170479fe6ddc8b174e17cad (diff) | |
download | bcm5719-llvm-9ea35e470cc8b3faedd6f79ea709926fa9fe012a.tar.gz bcm5719-llvm-9ea35e470cc8b3faedd6f79ea709926fa9fe012a.zip |
I will save before I commit.
I will save before I commit.
I will save before I commit.
I will save before I commit.
llvm-svn: 136007
Diffstat (limited to 'llvm/tools/llvm-objdump/MCFunction.h')
-rw-r--r-- | llvm/tools/llvm-objdump/MCFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/MCFunction.h b/llvm/tools/llvm-objdump/MCFunction.h index 60f64292092..f156e940118 100644 --- a/llvm/tools/llvm-objdump/MCFunction.h +++ b/llvm/tools/llvm-objdump/MCFunction.h @@ -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); } }; |