Merged RELEASE_1.
[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/BytecodeWriter library.
11 // This library is used to write VM bytecode files to an iostream.  First, you
12 // have to make a BytecodeStream object, which you can then put a class into
13 // by using operator <<.
14 //
15 // This library uses the Analysis library to figure out offsets for
16 // variables in the method tables...
17 //
18 // Note that performance of this library is not as crucial as performance of the
19 // bytecode reader (which is to be used in JIT type applications), so we have
20 // designed the bytecode format to support quick reading.
21 //
22 //===----------------------------------------------------------------------===//
23
24 #ifndef LLVM_BYTECODE_WRITER_H
25 #define LLVM_BYTECODE_WRITER_H
26
27 #include <iosfwd>
28
29 class Module;
30 void WriteBytecodeToFile(const Module *C, std::ostream &Out);
31
32 #endif