diff options
Diffstat (limited to 'include/llvm/Bytecode/WriteBytecodePass.h')
-rw-r--r-- | include/llvm/Bytecode/WriteBytecodePass.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Bytecode/WriteBytecodePass.h b/include/llvm/Bytecode/WriteBytecodePass.h index 61a2a3841f..a102863509 100644 --- a/include/llvm/Bytecode/WriteBytecodePass.h +++ b/include/llvm/Bytecode/WriteBytecodePass.h @@ -1,10 +1,10 @@ //===- llvm/Bytecode/WriteBytecodePass.h - Bytecode Writer Pass -*- C++ -*-===// -// +// // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// //===----------------------------------------------------------------------===// // // This file defines a simple pass to write the working module to a file after @@ -26,15 +26,15 @@ class WriteBytecodePass : public ModulePass { bool DeleteStream; bool CompressFile; public: - WriteBytecodePass() + WriteBytecodePass() : Out(&std::cout), DeleteStream(false), CompressFile(true) {} - WriteBytecodePass(std::ostream *o, bool DS = false, bool CF = true) + WriteBytecodePass(std::ostream *o, bool DS = false, bool CF = true) : Out(o), DeleteStream(DS), CompressFile(CF) {} inline ~WriteBytecodePass() { if (DeleteStream) delete Out; } - + bool runOnModule(Module &M) { WriteBytecodeToFile(&M, *Out, CompressFile ); return false; |