Add prototype to read .a files
authorChris Lattner <sabre@nondot.org>
Sat, 19 Apr 2003 21:45:52 +0000 (21:45 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 19 Apr 2003 21:45:52 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5821 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bytecode/Reader.h

index b9b24303dd8853a207f00d6af7a9a808b536fc07..57df2e9636802fd4fdd1326f7d5c250f6dbef71e 100644 (file)
@@ -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