Replacing std::iostreams with llvm iostreams. Some of these changes involve
[oota-llvm.git] / include / llvm / Bytecode / Writer.h
1 //===-- llvm/Bytecode/Writer.h - Writer for VM bytecode files ---*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This functionality is implemented by the lib/Bytecode/Writer library.
11 // This library is used to write bytecode files to an iostream.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_BYTECODE_WRITER_H
16 #define LLVM_BYTECODE_WRITER_H
17
18 namespace llvm {
19   class llvm_ostream;
20   class Module;
21   /// WriteBytecodeToFile - Write the specified module to the specified output
22   /// stream.  If compress is set to true, try to use compression when writing
23   /// out the file.  This can never fail if M is a well-formed module.
24   void WriteBytecodeToFile(const Module *M, llvm_ostream &Out,
25                            bool compress = true);
26 } // End llvm namespace
27
28 #endif