summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-04-26 16:27:08 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-04-26 16:27:08 +0000
commitc6e2d8a2ffc04084dcf4a96e56aca155856aed92 (patch)
treee438d440add1a2c2ca956402b4fc679816f192e0 /lib
parente0baeec4fec4088b2da21645ec0e6fb8c1d9c631 (diff)
downloadexternal_llvm-c6e2d8a2ffc04084dcf4a96e56aca155856aed92.zip
external_llvm-c6e2d8a2ffc04084dcf4a96e56aca155856aed92.tar.gz
external_llvm-c6e2d8a2ffc04084dcf4a96e56aca155856aed92.tar.bz2
Add functions that return instances of these printer passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/CFGPrinter.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp
index ac78970..3423e8b 100644
--- a/lib/Analysis/CFGPrinter.cpp
+++ b/lib/Analysis/CFGPrinter.cpp
@@ -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 @@ void Function::viewCFGOnly() const {
viewCFG();
CFGOnly = false;
}
+
+FunctionPass *llvm::createCFGPrinterPass () {
+ return new CFGPrinter();
+}
+
+FunctionPass *llvm::createCFGOnlyPrinterPass () {
+ return new CFGOnlyPrinter();
+}
+