diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-14 21:48:27 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-14 21:48:27 +0000 |
commit | 33e2fcd6f5383dace615c884e9890ebeb9ee3983 (patch) | |
tree | 0862fb5ffc9c379a689ac26b67dab66738e793f8 /include/llvm/Bytecode/Reader.h | |
parent | 9461bd79968f3cdd8290c48eb57aa3111ba866f7 (diff) |
Remove ReadArchiveFile (functionality moved to Archive.h). Add an alternate form for GetBytecodeSymbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode/Reader.h')
-rw-r--r-- | include/llvm/Bytecode/Reader.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h index a71700123f..a059ca4e93 100644 --- a/include/llvm/Bytecode/Reader.h +++ b/include/llvm/Bytecode/Reader.h @@ -72,15 +72,16 @@ bool GetBytecodeDependentLibraries(const std::string &fileName, bool GetBytecodeSymbols(const sys::Path& fileName, std::vector<std::string>& syms); -/// Read bytecode files from the specfied archive (.a) file, convert them -/// to Module* and provide them in the \p Objects argument. If an error -/// occurs, ErrorStr (if non-null) will be set to a string explaining -/// the error. -/// @return true on error, false on success. -/// @brief Get a vector of Module* from a bytecode archive file -bool ReadArchiveFile(const std::string &Filename, - std::vector<Module*> &Objects, - std::string *ErrorStr = 0); +/// 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 true on success, false if the bytecode can't be parsed +/// @brief Get a bytecode file's externally visibile defined global symbols. +bool llvm::GetBytecodeSymbols(const unsigned char*Buffer, unsigned Length, + const std::string& ModuleID, + std::vector<std::string>& symbols); } // End llvm namespace |