0113f78a38cfa966b6c351d702337371b64fff6c
[oota-llvm.git] / include / llvm / Bytecode / Writer.h
1 //===-- llvm/Bytecode/Writer.h - Writer for VM bytecode files ---*- C++ -*-===//
2 //
3 // This functionality is implemented by the lib/BytecodeWriter library.
4 // This library is used to write VM bytecode files to an iostream.  First, you
5 // have to make a BytecodeStream object, which you can then put a class into
6 // by using operator <<.
7 //
8 // This library uses the Analysis library to figure out offsets for
9 // variables in the method tables...
10 //
11 // Note that performance of this library is not as crucial as performance of the
12 // bytecode reader (which is to be used in JIT type applications), so we have
13 // designed the bytecode format to support quick reading.
14 //
15 //===----------------------------------------------------------------------===//
16
17 #ifndef LLVM_BYTECODE_WRITER_H
18 #define LLVM_BYTECODE_WRITER_H
19
20 #include <iosfwd>
21
22 class Module;
23 void WriteBytecodeToFile(const Module *C, std::ostream &Out);
24
25 #endif