1 //===-- llvm/Bytecode/Writer.h - Writer for VM bytecode files ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This functionality is implemented by the lib/Bytecode/Writer library.
11 // This library is used to write bytecode files to an iostream.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_BYTECODE_WRITER_H
16 #define LLVM_BYTECODE_WRITER_H
22 /// WriteBytecodeToFile - Write the specified module to the specified output
23 /// stream. If compress is set to true, try to use compression when writing
24 /// out the file. This can never fail if M is a well-formed module.
25 void WriteBytecodeToFile(const Module *M, std::ostream &Out,
26 bool compress = true);
27 } // End llvm namespace