[llvm-commits] CVS: llvm/include/llvm/Bytecode/Reader.h
LLVM
llvm at cs.uiuc.edu
Tue Jun 29 18:21:01 PDT 2004
Changes in directory llvm/include/llvm/Bytecode:
Reader.h updated: 1.16 -> 1.17
---
Log message:
Provide support for the BytecodeHandler interface which will be called by
the bcreader if one is supplied to the bytecode reader's interface
functions.
---
Diffs of the changes: (+9 -2)
Index: llvm/include/llvm/Bytecode/Reader.h
diff -u llvm/include/llvm/Bytecode/Reader.h:1.16 llvm/include/llvm/Bytecode/Reader.h:1.17
--- llvm/include/llvm/Bytecode/Reader.h:1.16 Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Bytecode/Reader.h Tue Jun 29 18:20:03 2004
@@ -25,16 +25,23 @@
namespace llvm {
+// Forward declare the handler class
+class BytecodeHandler;
+
/// 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
/// buffer
///
ModuleProvider *getBytecodeBufferModuleProvider(const unsigned char *Buffer,
unsigned BufferSize,
- const std::string &ModuleID="");
+ const std::string &ModuleID="",
+ BytecodeHandler* H = 0);
/// ParseBytecodeFile - Parse the given bytecode file
///
More information about the llvm-commits
mailing list