summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-08-21 00:31:24 +0000
committerDevang Patel <dpatel@apple.com>2007-08-21 00:31:24 +0000
commitb5933bbbd5c235278fbc41f7cef4b6f43eab79eb (patch)
tree3b97ca8d8bc47fd7e5b4ccdb593ba3499dfa8151 /llvm/lib/Analysis/LoopInfo.cpp
parentb04ea61b7979117d249111f264a44edab686b744 (diff)
downloadbcm5719-llvm-b5933bbbd5c235278fbc41f7cef4b6f43eab79eb.tar.gz
bcm5719-llvm-b5933bbbd5c235278fbc41f7cef4b6f43eab79eb.zip
Use SmallVector instead of std::vector.
llvm-svn: 41207
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp6
1 files changed, 3 insertions, 3 deletions
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<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());
OpenPOWER on IntegriCloud