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 | dbc46d7dd8e2b4a2a34222d71fbcc33249330362 (patch) | |
tree | 08b5b0579ccc499a7d6558a509e8a2c266650214 /tools/llvm-objdump/MCFunction.h | |
parent | f49433523e8a39db6d83503e312ae55160eed90a (diff) |
I will save before I commit.
I will save before I commit.
I will save before I commit.
I will save before I commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump/MCFunction.h')
-rw-r--r-- | tools/llvm-objdump/MCFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/llvm-objdump/MCFunction.h b/tools/llvm-objdump/MCFunction.h index 60f6429209..f156e94011 100644 --- a/tools/llvm-objdump/MCFunction.h +++ b/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); } }; |