Changes to get some meaningful feedback from the bytecode reader. At some point...
[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/BytecodeReader 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 string &Filename, string *ErrorStr = 0);
22 Module *ParseBytecodeBuffer(const char *Buffer, unsigned BufferSize,
23                             string *ErrorStr = 0);
24
25 #endif