From b5933bbbd5c235278fbc41f7cef4b6f43eab79eb Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 21 Aug 2007 00:31:24 +0000 Subject: Use SmallVector instead of std::vector. llvm-svn: 41207 --- llvm/lib/Analysis/LoopInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Analysis/LoopInfo.cpp') diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp index 8f9b43fa864..877bd4ae676 100644 --- a/llvm/lib/Analysis/LoopInfo.cpp +++ b/llvm/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 &ExitingBlocks) const { +void Loop::getExitingBlocks(SmallVector &ExitingBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector LoopBBs(block_begin(), block_end()); @@ -369,7 +369,7 @@ void Loop::getExitingBlocks(std::vector &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 &ExitBlocks) const { +void Loop::getExitBlocks(SmallVector &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector LoopBBs(block_begin(), block_end()); @@ -387,7 +387,7 @@ void Loop::getExitBlocks(std::vector &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 &ExitBlocks) const { +void Loop::getUniqueExitBlocks(SmallVector &ExitBlocks) const { // Sort the blocks vector so that we can use binary search to do quick // lookups. std::vector LoopBBs(block_begin(), block_end()); -- cgit v1.2.3