mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Move dumpPassStructure out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
244cc2c6c0
commit
189c6357a1
@ -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!");
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user