From 305d2533f6ef36a056d5777bdfc74077507b20b4 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 1 Feb 2007 22:10:12 +0000 Subject: [PATCH] Pretty print pass managers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33767 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/PassManagers.h | 4 ++++ 1 file changed, 4 insertions(+) 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]);