diff options
author | Devang Patel <dpatel@apple.com> | 2007-08-21 00:31:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-08-21 00:31:24 +0000 |
commit | b7211a2ce13a0365e0e1dd2f27adda2ee3d1288b (patch) | |
tree | b9ad502a1f6b2bc11758d76401b46b4660a6e4d4 /lib/Analysis/LoopInfo.cpp | |
parent | 2d691333acec66118ede55b6d7ec7a3083bc1e01 (diff) |
Use SmallVector instead of std::vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41207 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 8f9b43fa86..877bd4ae67 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(std::vector<BasicBlock*> &ExitingBlocks) const { +void Loop::getExitingBlocks(SmallVector<BasicBlock*, 8> &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(std::vector<BasicBlock*> &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(std::vector<BasicBlock*> &ExitBlocks) const { +void Loop::getExitBlocks(SmallVector<BasicBlock*, 8> &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(std::vector<BasicBlock*> &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(std::vector<BasicBlock*> &ExitBlocks) const { +void Loop::getUniqueExitBlocks(SmallVector<BasicBlock*, 8> &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()); |