[llvm-commits] CVS: llvm/tools/analyze/analyze.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 6 00:17:01 PST 2002
Changes in directory llvm/tools/analyze:
analyze.cpp updated: 1.46 -> 1.47
---
Log message:
Give passnames to the printer classes
---
Diffs of the changes:
Index: llvm/tools/analyze/analyze.cpp
diff -u llvm/tools/analyze/analyze.cpp:1.46 llvm/tools/analyze/analyze.cpp:1.47
--- llvm/tools/analyze/analyze.cpp:1.46 Fri Aug 30 17:54:37 2002
+++ llvm/tools/analyze/analyze.cpp Wed Nov 6 00:16:08 2002
@@ -31,6 +31,8 @@
// 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 @@
return false;
}
+ virtual const char *getPassName() const { return "FunctionPass Printer"; }
+
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequiredID(PassToPrint);
AU.setPreservesAll();
@@ -69,6 +73,8 @@
// Get and print pass...
return false;
}
+
+ virtual const char *getPassName() const { return "BasicBlockPass Printer"; }
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequiredID(PassToPrint);
More information about the llvm-commits
mailing list