diff options
author | Devang Patel <dpatel@apple.com> | 2007-08-21 16:39:43 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-08-21 16:39:43 +0000 |
commit | 7c6c55db4df35c9e0bbff89ceec52b0504862d7d (patch) | |
tree | 4d93c1c0b34ad877af7e4ed552c601af81320c54 /lib/Analysis/LoopInfo.cpp | |
parent | 84f47c52fd3c13a781134a8df6cfb918dce0033a (diff) | |
download | external_llvm-7c6c55db4df35c9e0bbff89ceec52b0504862d7d.zip external_llvm-7c6c55db4df35c9e0bbff89ceec52b0504862d7d.tar.gz external_llvm-7c6c55db4df35c9e0bbff89ceec52b0504862d7d.tar.bz2 |
No need to hardcode SmallVector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 877bd4a..e479edc 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -350,7 +350,7 @@ void LoopInfo::removeBlock(BasicBlock *BB) { /// outside of the loop. These are the blocks _inside of the current loop_ /// which branch out. The returned list is always unique. /// -void Loop::getExitingBlocks(SmallVector<BasicBlock*, 8> &ExitingBlocks) const { +void Loop::getExitingBlocks(SmallVectorImpl<BasicBlock*> &ExitingBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector<BasicBlock*> LoopBBs(block_begin(), block_end()); @@ -369,7 +369,7 @@ void Loop::getExitingBlocks(SmallVector<BasicBlock*, 8> &ExitingBlocks) const { /// getExitBlocks - Return all of the successor blocks of this loop. These /// are the blocks _outside of the current loop_ which are branched to. /// -void Loop::getExitBlocks(SmallVector<BasicBlock*, 8> &ExitBlocks) const { +void Loop::getExitBlocks(SmallVectorImpl<BasicBlock*> &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector<BasicBlock*> LoopBBs(block_begin(), block_end()); @@ -387,7 +387,7 @@ void Loop::getExitBlocks(SmallVector<BasicBlock*, 8> &ExitBlocks) const { /// are the blocks _outside of the current loop_ which are branched to. This /// assumes that loop is in canonical form. // -void Loop::getUniqueExitBlocks(SmallVector<BasicBlock*, 8> &ExitBlocks) const { +void Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock*> &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector<BasicBlock*> LoopBBs(block_begin(), block_end()); |