diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:07:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:07:49 +0000 |
commit | f082b80828c13dcb7fb29ad5167ed161c1031534 (patch) | |
tree | e5e39965bda6c5d27171c583cd06217159ccd933 | |
parent | f629309f74cf1a64aa7fd1cd5784fd7db9a8f59e (diff) |
Register Writer passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3017 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 842bc0912a..7aefe32a22 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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); |