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
This commit is contained in:
Brian Gaeke 2004-04-26 16:27:08 +00:00
parent e0baeec4fe
commit c6e2d8a2ff

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