Pretty print pass managers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-02-01 22:10:12 +00:00
parent 505f36aede
commit 305d2533f6

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