diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-30 20:47:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-30 20:47:48 +0000 |
commit | 4382c736dfbc52070eaf48bccf7436f54f546c22 (patch) | |
tree | 90badbeb7fd475cf7e757de5433730f6fd97ae8e /include/llvm/Bytecode | |
parent | 9b0d6f4ca64b9d7b029a5f39581a02b2e7bb6559 (diff) |
Restore source-level compatibility with clients of these functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r-- | include/llvm/Bytecode/Reader.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h index b69932ba01..3627186135 100644 --- a/include/llvm/Bytecode/Reader.h +++ b/include/llvm/Bytecode/Reader.h @@ -36,7 +36,7 @@ class BytecodeHandler; /// @brief Get a ModuleProvide for a bytecode file. ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read - std::string* ErrMsg, ///< Optional error message holder + std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); @@ -49,8 +49,8 @@ ModuleProvider *getBytecodeBufferModuleProvider( const unsigned char *Buffer, ///< Start of buffer to parse unsigned BufferSize, ///< Size of the buffer const std::string &ModuleID, ///< Name to give the module - std::string* ErrMsg, ///< Optional place to return an error message - BytecodeHandler* H ///< Optional handler for reader events + std::string* ErrMsg = 0, ///< Optional place to return an error message + BytecodeHandler* H = 0 ///< Optional handler for reader events ); /// This is the main interface to bytecode parsing. It opens the file specified @@ -84,7 +84,7 @@ Module* ParseBytecodeBuffer( bool GetBytecodeDependentLibraries( const std::string &fileName, ///< File name to read bytecode from Module::LibraryListType& deplibs, ///< List of dependent libraries extracted - std::string* ErrMsg ///< Optional error message holder + std::string* ErrMsg = 0 ///< Optional error message holder ); /// This function will read only the necessary parts of a bytecode file in order @@ -96,7 +96,7 @@ bool GetBytecodeDependentLibraries( bool GetBytecodeSymbols( const sys::Path& fileName, ///< Filename to read bytecode from std::vector<std::string>& syms, ///< Vector to return symbols in - std::string* ErrMsg ///< Optional error message holder + std::string* ErrMsg = 0 ///< Optional error message holder ); /// This function will read only the necessary parts of a bytecode buffer in @@ -111,7 +111,7 @@ ModuleProvider* GetBytecodeSymbols( unsigned Length, ///< The length of \p Buffer const std::string& ModuleID, ///< An identifier for the module std::vector<std::string>& symbols, ///< The symbols defined in the module - std::string* ErrMsg ///< Optional error message holder + std::string* ErrMsg = 0 ///< Optional error message holder ); } // End llvm namespace |