aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bytecode
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-09-22 23:36:33 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-09-22 23:36:33 +0000
commit2f00285b21f557b2ccd541cc6530a4334874ea9f (patch)
tree1c4ddb62b267749b7e1e759a258cce11cba096ad /include/llvm/Bytecode
parent4f901d6d99de97eb6a7e09bcd0fd6dc7e91311ab (diff)
Added functions to perform streaming function loading, doxygenified comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r--include/llvm/Bytecode/Reader.h34
1 files changed, 25 insertions, 9 deletions
diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h
index 95ca971be7..62b512b25f 100644
--- a/include/llvm/Bytecode/Reader.h
+++ b/include/llvm/Bytecode/Reader.h
@@ -12,23 +12,39 @@
#ifndef LLVM_BYTECODE_READER_H
#define LLVM_BYTECODE_READER_H
+#include "llvm/ModuleProvider.h"
#include <string>
#include <vector>
-class Module;
+///
+///
+AbstractModuleProvider*
+getBytecodeModuleProvider(const std::string &Filename);
-// Parse and return a class...
-//
-Module *ParseBytecodeFile(const std::string &Filename,
+///
+///
+AbstractModuleProvider*
+getBytecodeBufferModuleProvider(const unsigned char *Buffer,
+ unsigned BufferSize,
+ const std::string &ModuleID);
+
+/// Parse the given bytecode file
+///
+Module* ParseBytecodeFile(const std::string &Filename,
std::string *ErrorStr = 0);
-Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned BufferSize,
+
+/// Parse a given bytecode buffer
+///
+Module* ParseBytecodeBuffer(const unsigned char *Buffer,
+ unsigned BufferSize,
const std::string &ModuleID,
std::string *ErrorStr = 0);
-// ReadArchiveFile - Read bytecode files from the specfied .a file, returning
-// true on error, or false on success.
-//
-bool ReadArchiveFile(const std::string &Filename, std::vector<Module*> &Objects,
+/// ReadArchiveFile - Read bytecode files from the specfied .a file, returning
+/// true on error, or false on success.
+///
+bool ReadArchiveFile(const std::string &Filename,
+ std::vector<Module*> &Objects,
std::string *ErrorStr = 0);
#endif