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);