diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp index eb78d915b449..8844b7316c4d 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -31,6 +31,8 @@ struct ModulePassPrinter : public Pass { // Get and print pass... return false; } + + virtual const char *getPassName() const { return "'Pass' Printer"; } virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequiredID(PassToPrint); @@ -51,6 +53,8 @@ struct FunctionPassPrinter : public FunctionPass { return false; } + virtual const char *getPassName() const { return "FunctionPass Printer"; } + virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequiredID(PassToPrint); AU.setPreservesAll(); @@ -70,6 +74,8 @@ struct BasicBlockPassPrinter : public BasicBlockPass { return false; } + virtual const char *getPassName() const { return "BasicBlockPass Printer"; } + virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequiredID(PassToPrint); AU.setPreservesAll();