[llvm-commits] CVS: llvm-tv/tools/llvm-tv/GraphPrinters.cpp
Misha Brukman
brukman at cs.uiuc.edu
Tue Apr 19 13:14:35 PDT 2005
Changes in directory llvm-tv/tools/llvm-tv:
GraphPrinters.cpp updated: 1.7 -> 1.8
---
Log message:
Pass API changed: derive from ModulePass instead of Pass
---
Diffs of the changes: (+6 -6)
GraphPrinters.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Index: llvm-tv/tools/llvm-tv/GraphPrinters.cpp
diff -u llvm-tv/tools/llvm-tv/GraphPrinters.cpp:1.7 llvm-tv/tools/llvm-tv/GraphPrinters.cpp:1.8
--- llvm-tv/tools/llvm-tv/GraphPrinters.cpp:1.7 Tue Oct 5 16:30:49 2004
+++ llvm-tv/tools/llvm-tv/GraphPrinters.cpp Tue Apr 19 15:14:24 2005
@@ -60,8 +60,8 @@
}
namespace {
- struct CallGraphPrinter : public Pass {
- virtual bool runPass(Module &M) {
+ struct CallGraphPrinter : public ModulePass {
+ virtual bool runOnModule(Module &M) {
WriteGraphToFile(std::cerr, "callgraph", &getAnalysis<CallGraph>());
return false;
}
@@ -85,12 +85,12 @@
namespace {
template<class DSType>
- class DSModulePrinter : public Pass {
+ class DSModulePrinter : public ModulePass {
protected:
virtual std::string getFilename() = 0;
public:
- bool runPass(Module &M) {
+ bool runOnModule(Module &M) {
DSType *DS = &getAnalysis<DSType>();
std::string File = getFilename();
std::ofstream of(File.c_str());
@@ -111,7 +111,7 @@
};
template<class DSType>
- class DSFunctionPrinter : public Pass {
+ class DSFunctionPrinter : public ModulePass {
protected:
Function *F;
virtual std::string getFilename(Function &F) = 0;
@@ -119,7 +119,7 @@
public:
DSFunctionPrinter(Function *_F) : F(_F) {}
- bool runPass(Module &M) {
+ bool runOnModule(Module &M) {
DSType *DS = &getAnalysis<DSType>();
std::string File = getFilename(*F);
std::ofstream of(File.c_str());
More information about the llvm-commits
mailing list