diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 920707c89cc..bd3672f944a 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -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(PassVector[N]);