diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-19 21:45:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-19 21:45:52 +0000 |
commit | 23e0a58c5a48802946cf0fbadef023179a443f05 (patch) | |
tree | fd613ba1bf5e006c2f3de73dc62c21c8561970b7 /include/llvm/Bytecode | |
parent | 968cfd0b6e5aa4eac98c748fafd145889b4c7b83 (diff) | |
download | external_llvm-23e0a58c5a48802946cf0fbadef023179a443f05.zip external_llvm-23e0a58c5a48802946cf0fbadef023179a443f05.tar.gz external_llvm-23e0a58c5a48802946cf0fbadef023179a443f05.tar.bz2 |
Add prototype to read .a files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r-- | include/llvm/Bytecode/Reader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h index b9b2430..57df2e9 100644 --- a/include/llvm/Bytecode/Reader.h +++ b/include/llvm/Bytecode/Reader.h @@ -13,6 +13,7 @@ #define LLVM_BYTECODE_READER_H #include <string> +#include <vector> class Module; @@ -23,4 +24,10 @@ Module *ParseBytecodeFile(const std::string &Filename, Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned BufferSize, 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, + std::string *ErrorStr = 0); + #endif |