Add functions that return instances of these printer passes

llvm-svn: 13175
This commit is contained in:
Brian Gaeke 2004-04-26 16:27:08 +00:00
parent 1aada2b128
commit 217515996f

View File

@ -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();
}