From 189c6357a1a1d09b8b0c5cf6f1cd561a47ccec18 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 17 Feb 2009 19:41:26 +0000 Subject: [PATCH] Move dumpPassStructure out of line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64796 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/LoopPass.h | 11 ++--------- lib/Analysis/LoopPass.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index dbfd4d0b26c..ca41e51aa0c 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -97,15 +97,8 @@ public: return "Loop Pass Manager"; } - // Print passes managed by this manager - void dumpPassStructure(unsigned Offset) { - llvm::cerr << std::string(Offset*2, ' ') << "Loop Pass Manager\n"; - for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { - Pass *P = getContainedPass(Index); - P->dumpPassStructure(Offset + 1); - dumpLastUses(P, Offset+1); - } - } + /// Print passes managed by this manager + void dumpPassStructure(unsigned Offset); Pass *getContainedPass(unsigned N) { assert(N < PassVector.size() && "Pass number out of range!"); diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 7ebd4d39427..da9ac2749a0 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -261,6 +261,16 @@ bool LPPassManager::runOnFunction(Function &F) { return Changed; } +/// Print passes managed by this manager +void LPPassManager::dumpPassStructure(unsigned Offset) { + llvm::cerr << std::string(Offset*2, ' ') << "Loop Pass Manager\n"; + for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { + Pass *P = getContainedPass(Index); + P->dumpPassStructure(Offset + 1); + dumpLastUses(P, Offset+1); + } +} + //===----------------------------------------------------------------------===// // LoopPass -- 2.11.0