Move to include/llvm/CodeGen
[oota-llvm.git] / include / llvm / Bytecode / Reader.h
1 //===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=//
2 //
3 // This functionality is implemented by the lib/Bytecode/Reader library.
4 // This library is used to read VM bytecode files from an iostream.
5 //
6 // Note that performance of this library is _crucial_ for performance of the
7 // JIT type applications, so we have designed the bytecode format to support
8 // quick reading.
9 //
10 //===----------------------------------------------------------------------===//
11
12 #ifndef LLVM_BYTECODE_READER_H
13 #define LLVM_BYTECODE_READER_H
14
15 #include <string>
16
17 class Module;
18
19 // Parse and return a class...
20 //
21 Module *ParseBytecodeFile(const std::string &Filename,
22                           std::string *ErrorStr = 0);
23 Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned BufferSize);
24
25 #endif