diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-31 20:01:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-31 20:01:57 +0000 |
commit | 78a5c1aa3c23fead7c3094160aefa50655728030 (patch) | |
tree | e84ac4deb9db3daa094f045dbd0eb9cfa90f19a0 /llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | |
parent | 71e71f294bc67cbb3d006bb4b6532f41fb7e89b2 (diff) | |
download | bcm5719-llvm-78a5c1aa3c23fead7c3094160aefa50655728030.tar.gz bcm5719-llvm-78a5c1aa3c23fead7c3094160aefa50655728030.zip |
Rename TarjanSCCIterator -> scc_iterator
* Increases consistency with other iterators (e.g. df_iterator, po_iterator...)
* It's shorter
* We don't name classes by the implementation, we name it for the interface!
llvm-svn: 8273
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index 031fb02d002..4f363dc1a0d 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -10,7 +10,7 @@ #include "llvm/CallGraphSCCPass.h" #include "llvm/Analysis/CallGraph.h" -#include "Support/TarjanSCCIterator.h" +#include "Support/SCCIterator.h" /// getAnalysisUsage - For this class, we declare that we require and preserve /// the call graph. If the derived class implements this method, it should @@ -23,7 +23,7 @@ void CallGraphSCCPass::getAnalysisUsage(AnalysisUsage &AU) const { bool CallGraphSCCPass::run(Module &M) { CallGraph &CG = getAnalysis<CallGraph>(); bool Changed = false; - for (TarjanSCC_iterator<CallGraph*> I = tarj_begin(&CG), E = tarj_end(&CG); + for (scc_iterator<CallGraph*> I = scc_begin(&CG), E = scc_end(&CG); I != E; ++I) Changed = runOnSCC(*I); return Changed; |