diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-05-17 23:58:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-17 23:58:53 +0000 |
commit | 4f098788d303bed05da6000f3ff24177aad56623 (patch) | |
tree | 6fe50ff4c65a82c55c5905d53a83c86b07938df5 /include/llvm | |
parent | 413f2f961af246ff6422726fb8071555c6cacb44 (diff) | |
download | external_llvm-4f098788d303bed05da6000f3ff24177aad56623.zip external_llvm-4f098788d303bed05da6000f3ff24177aad56623.tar.gz external_llvm-4f098788d303bed05da6000f3ff24177aad56623.tar.bz2 |
Move isSuccessor() offline, change it to use std::find.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 62394cf..b357858 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -217,12 +217,7 @@ public: /// isSuccessor - Return true if the specified MBB is a successor of this /// block. - bool isSuccessor(MachineBasicBlock *MBB) const { - for (const_succ_iterator I = succ_begin(), E = succ_end(); I != E; ++I) - if (*I == MBB) - return true; - return false; - } + bool isSuccessor(MachineBasicBlock *MBB) const; /// getFirstTerminator - returns an iterator to the first terminator /// instruction of this basic block. If a terminator does not exist, |