mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 14:16:59 +00:00
Add functions that return instances of these printer passes
llvm-svn: 13175
This commit is contained in:
parent
1aada2b128
commit
217515996f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user