From f36c7b860de5cae1ffc817fce430210e942a0bf7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 7 Feb 2007 23:53:17 +0000 Subject: move archive-specific stuff out of bcreader into archive library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34022 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Bytecode/Reader.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'include/llvm/Bytecode/Reader.h') diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h index e33e310..f4c575b 100644 --- a/include/llvm/Bytecode/Reader.h +++ b/include/llvm/Bytecode/Reader.h @@ -81,36 +81,6 @@ Module* ParseBytecodeBuffer( std::string *ErrMsg = 0 ///< Optional place to return an error message ); - -/// This function will read only the necessary parts of a bytecode file in order -/// to obtain a list of externally visible global symbols that the bytecode -/// module defines. This is used for archiving and linking when only the list -/// of symbols the module defines is needed. -/// @returns true on error, false otherwise -/// @brief Get a bytecode file's externally visibile defined global symbols. -bool GetBytecodeSymbols( - const sys::Path& fileName, ///< Filename to read bytecode from - std::vector& syms, ///< Vector to return symbols in - BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, - std::string* ErrMsg = 0 ///< Optional error message holder -); - -/// This function will read only the necessary parts of a bytecode buffer in -/// order to obtain a list of externally visible global symbols that the -/// bytecode module defines. This is used for archiving and linking when only -/// the list of symbols the module defines is needed and the bytecode is -/// already in memory. -/// @returns the ModuleProvider on success, 0 if the bytecode can't be parsed -/// @brief Get a bytecode file's externally visibile defined global symbols. -ModuleProvider* GetBytecodeSymbols( - const unsigned char*Buffer, ///< The buffer to be parsed - unsigned Length, ///< The length of \p Buffer - const std::string& ModuleID, ///< An identifier for the module - std::vector& symbols, ///< The symbols defined in the module - BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, - std::string* ErrMsg = 0 ///< Optional error message holder -); - } // End llvm namespace #endif -- cgit v1.1