mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Register Writer passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f629309f74
commit
f082b80828
@ -10,6 +10,7 @@
|
||||
|
||||
#include "llvm/Assembly/CachedWriter.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include "llvm/Assembly/PrintModulePass.h"
|
||||
#include "llvm/SlotCalculator.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Instruction.h"
|
||||
@ -28,6 +29,9 @@ using std::map;
|
||||
using std::vector;
|
||||
using std::ostream;
|
||||
|
||||
static RegisterPass<PrintModulePass> X("printm", "Print module to stderr");
|
||||
static RegisterPass<PrintFunctionPass> Y("print", "Print function to stderr");
|
||||
|
||||
static void WriteAsOperandInternal(ostream &Out, const Value *V, bool PrintName,
|
||||
map<const Type *, string> &TypeTable,
|
||||
SlotCalculator *Table);
|
||||
|
Loading…
Reference in New Issue
Block a user