Implement review feedback. Aliasees can be either GlobalValue's or
[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 #include "llvm/Support/Streams.h"
19
20 namespace llvm {
21   class Module;
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, OStream &Out,
26                            bool compress = false);
27 } // End llvm namespace
28
29 #endif