summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 18:24:50 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 18:24:50 +0000
commitd2b2facb0783864bab79b059e28b9d430e291b2c (patch)
treea4bc8cc634abec2bc9f6a530f3434bf12107ae56 /llvm/tools
parentf4e1d6fd0690be462b5d7aabc93e7c12cac629b8 (diff)
downloadbcm5719-llvm-d2b2facb0783864bab79b059e28b9d430e291b2c.tar.gz
bcm5719-llvm-d2b2facb0783864bab79b059e28b9d430e291b2c.zip
SCC: Change clients to use const, NFC
It's fishy to be changing the `std::vector<>` owned by the iterator, and no one actual does it, so I'm going to remove the ability in a subsequent commit. First, update the users. <rdar://problem/14292693> llvm-svn: 207252
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/opt/PrintSCC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/opt/PrintSCC.cpp b/llvm/tools/opt/PrintSCC.cpp
index d5d4336ea5d..78ede2b72f8 100644
--- a/llvm/tools/opt/PrintSCC.cpp
+++ b/llvm/tools/opt/PrintSCC.cpp
@@ -75,7 +75,7 @@ bool CFGSCC::runOnFunction(Function &F) {
unsigned sccNum = 0;
errs() << "SCCs for Function " << F.getName() << " in PostOrder:";
for (scc_iterator<Function*> SCCI = scc_begin(&F); !SCCI.isAtEnd(); ++SCCI) {
- std::vector<BasicBlock*> &nextSCC = *SCCI;
+ const std::vector<BasicBlock *> &nextSCC = *SCCI;
errs() << "\nSCC #" << ++sccNum << " : ";
for (std::vector<BasicBlock*>::const_iterator I = nextSCC.begin(),
E = nextSCC.end(); I != E; ++I)
OpenPOWER on IntegriCloud