[llvm-commits] CVS: llvm/include/llvm/Bytecode/Archive.h

Reid Spencer reid at x10sys.com
Sun Dec 12 18:58:27 PST 2004



Changes in directory llvm/include/llvm/Bytecode:

Archive.h updated: 1.8 -> 1.9
---
Log message:

Make the OpenAndLoad functions have an ErrorMessage argument.

---
Diffs of the changes:  (+6 -2)

Index: llvm/include/llvm/Bytecode/Archive.h
diff -u llvm/include/llvm/Bytecode/Archive.h:1.8 llvm/include/llvm/Bytecode/Archive.h:1.9
--- llvm/include/llvm/Bytecode/Archive.h:1.8	Sat Nov 20 01:29:40 2004
+++ llvm/include/llvm/Bytecode/Archive.h	Sun Dec 12 20:58:16 2004
@@ -306,7 +306,10 @@
     /// you intend to modify the archive or traverse its contents (e.g. for
     /// printing).
     /// @brief Open and load an archive file
-    static Archive* OpenAndLoad(const sys::Path& filePath);
+    static Archive* OpenAndLoad(
+      const sys::Path& filePath,    ///< The file path to open and load
+      std::string* ErrorMessage = 0 ///< An optional error string
+    );
 
     /// This method opens an existing archive file from \p Filename and reads in
     /// its symbol table without reading in any of the archive's members. This
@@ -325,7 +328,8 @@
     /// @returns an Archive* that represents the archive file.
     /// @brief Open an existing archive and load its symbols.
     static Archive* OpenAndLoadSymbols(
-      const sys::Path& Filename ///< Name of the archive file to open
+      const sys::Path& Filename,   ///< Name of the archive file to open
+      std::string* ErrorMessage=0  ///< An optional error string
     );
 
     /// This destructor cleans up the Archive object, releases all memory, and






More information about the llvm-commits mailing list