Pretty print pass managers.

llvm-svn: 33767
This commit is contained in:
Devang Patel 2007-02-01 22:10:12 +00:00
parent 015a474023
commit 3f71179e2d

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]);