aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Bytecode
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 02:58:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 02:58:16 +0000
commit37911af8c4e74c9d04a5f38e2199c1ad88fa9775 (patch)
treef581499cd8537f816b657580f698fc8fe747edd7 /include/llvm/Bytecode
parente5caf877e9355ba68cfb6d995e0b1a2b2a466288 (diff)
downloadexternal_llvm-37911af8c4e74c9d04a5f38e2199c1ad88fa9775.zip
external_llvm-37911af8c4e74c9d04a5f38e2199c1ad88fa9775.tar.gz
external_llvm-37911af8c4e74c9d04a5f38e2199c1ad88fa9775.tar.bz2
Make the OpenAndLoad functions have an ErrorMessage argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r--include/llvm/Bytecode/Archive.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Bytecode/Archive.h b/include/llvm/Bytecode/Archive.h
index 41c9311..102bb5c 100644
--- a/include/llvm/Bytecode/Archive.h
+++ b/include/llvm/Bytecode/Archive.h
@@ -306,7 +306,10 @@ class Archive {
/// 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 @@ class Archive {
/// @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