aboutsummaryrefslogtreecommitdiffstats
path: root/tools/analyze
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-06 06:16:08 +0000
committerChris Lattner <sabre@nondot.org>2002-11-06 06:16:08 +0000
commit6d37acb052065c07b46110d521d8d055c2d4fbf1 (patch)
tree83c688abaa2f88f444f062a1380013ac8513fa5d /tools/analyze
parent5051e9cb2321463111d05412449dd8db0dbb08fa (diff)
downloadexternal_llvm-6d37acb052065c07b46110d521d8d055c2d4fbf1.zip
external_llvm-6d37acb052065c07b46110d521d8d055c2d4fbf1.tar.gz
external_llvm-6d37acb052065c07b46110d521d8d055c2d4fbf1.tar.bz2
Give passnames to the printer classes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/analyze')
-rw-r--r--tools/analyze/analyze.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp
index eb78d91..8844b73 100644
--- a/tools/analyze/analyze.cpp
+++ b/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();