mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
e0baeec4fe
commit
c6e2d8a2ff
@ -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…
Reference in New Issue
Block a user