From: Chris Lattner Date: Tue, 23 Jul 2002 18:07:49 +0000 (+0000) Subject: Register Writer passes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f082b80828c13dcb7fb29ad5167ed161c1031534;p=oota-llvm.git Register Writer passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3017 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 842bc0912aa..7aefe32a22b 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 X("printm", "Print module to stderr"); +static RegisterPass Y("print", "Print function to stderr"); + static void WriteAsOperandInternal(ostream &Out, const Value *V, bool PrintName, map &TypeTable, SlotCalculator *Table);