Provide support for the BytecodeHandler interface which will be called by

the bcreader if one is supplied to the bytecode reader's interface
functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-06-29 23:20:03 +00:00
parent 9c1e05fe75
commit 78b763b2ad

View File

@@ -25,16 +25,23 @@
namespace llvm { namespace llvm {
// Forward declare the handler class
class BytecodeHandler;
/// getBytecodeModuleProvider - lazy function-at-a-time loading from a file /// getBytecodeModuleProvider - lazy function-at-a-time loading from a file
/// ///
ModuleProvider *getBytecodeModuleProvider(const std::string &Filename); ModuleProvider *getBytecodeModuleProvider(
const std::string &Filename, ///< Name of file to be read
BytecodeHandler* H = 0 ///< Optional handler for reader events
);
/// getBytecodeBufferModuleProvider - lazy function-at-a-time loading from a /// getBytecodeBufferModuleProvider - lazy function-at-a-time loading from a
/// buffer /// buffer
/// ///
ModuleProvider *getBytecodeBufferModuleProvider(const unsigned char *Buffer, ModuleProvider *getBytecodeBufferModuleProvider(const unsigned char *Buffer,
unsigned BufferSize, unsigned BufferSize,
const std::string &ModuleID=""); const std::string &ModuleID="",
BytecodeHandler* H = 0);
/// ParseBytecodeFile - Parse the given bytecode file /// ParseBytecodeFile - Parse the given bytecode file
/// ///