1 //===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=//
3 // This functionality is implemented by the lib/BytecodeReader library.
4 // This library is used to read VM bytecode files from an iostream.
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
10 //===----------------------------------------------------------------------===//
12 #ifndef LLVM_BYTECODE_READER_H
13 #define LLVM_BYTECODE_READER_H
19 // Parse and return a class...
21 Module *ParseBytecodeFile(const std::string &Filename,
22 std::string *ErrorStr = 0);
23 Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned BufferSize);