Pretty print pass managers.

llvm-svn: 33767
This commit is contained in:
Devang Patel 2007-02-01 22:10:12 +00:00
parent f7fea8adf3
commit 04bb891670
1 changed files with 4 additions and 0 deletions

View File

@ -312,6 +312,10 @@ public:
// Print passes managed by this manager
void dumpPassStructure(unsigned Offset);
virtual const char *getPassName() const {
return "Function Pass Manager";
}
FunctionPass *getContainedPass(unsigned N) {
assert ( N < PassVector.size() && "Pass number out of range!");
FunctionPass *FP = static_cast<FunctionPass *>(PassVector[N]);