mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
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
This commit is contained in:
parent
ef3d573e31
commit
246f1a33d5
@ -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); }
|
||||
};
|
||||
|
@ -286,7 +286,7 @@ static void DisassembleInput(const StringRef &Filename) {
|
||||
// FIXME: Slow.
|
||||
for (MCFunction::iterator pi = f.begin(), pe = f.end(); pi != pe;
|
||||
++pi)
|
||||
for (pi->second->contains(&i->second)) {
|
||||
if (pi->second.contains(&i->second)) {
|
||||
hasPreds = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user