[llvm-commits] CVS: llvm/lib/Analysis/CFGPrinter.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Mon Apr 26 11:27:04 PDT 2004


Changes in directory llvm/lib/Analysis:

CFGPrinter.cpp updated: 1.5 -> 1.6

---
Log message:

Add functions that return instances of these printer passes


---
Diffs of the changes:  (+10 -0)

Index: llvm/lib/Analysis/CFGPrinter.cpp
diff -u llvm/lib/Analysis/CFGPrinter.cpp:1.5 llvm/lib/Analysis/CFGPrinter.cpp:1.6
--- llvm/lib/Analysis/CFGPrinter.cpp:1.5	Thu Dec 11 15:48:18 2003
+++ llvm/lib/Analysis/CFGPrinter.cpp	Mon Apr 26 11:27:08 2004
@@ -22,6 +22,7 @@
 #include "llvm/Function.h"
 #include "llvm/iTerminators.h"
 #include "llvm/Assembly/Writer.h"
+#include "llvm/Analysis/CFGPrinter.h"
 #include "llvm/Support/CFG.h"
 #include <sstream>
 #include <fstream>
@@ -173,3 +174,12 @@
   viewCFG();
   CFGOnly = false;
 }
+
+FunctionPass *llvm::createCFGPrinterPass () {
+  return new CFGPrinter();
+}
+
+FunctionPass *llvm::createCFGOnlyPrinterPass () {
+  return new CFGOnlyPrinter();
+}
+





More information about the llvm-commits mailing list