diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-24 22:49:07 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-24 22:49:07 +0000 |
commit | 95e4cceaff6caa1588a0ad36ad40d1209182fd01 (patch) | |
tree | 89a5e8fcb76b7ff150e67c8b9aab14ff93178443 /include/llvm/Bytecode | |
parent | 44407c4503a7f00535106eaf7b5932668343f754 (diff) | |
download | external_llvm-95e4cceaff6caa1588a0ad36ad40d1209182fd01.zip external_llvm-95e4cceaff6caa1588a0ad36ad40d1209182fd01.tar.gz external_llvm-95e4cceaff6caa1588a0ad36ad40d1209182fd01.tar.bz2 |
Add a function that gets just the dependent libraries from a bytecode file.
Doxygenify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r-- | include/llvm/Bytecode/Reader.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h index 6b20d8b..a28c0e5 100644 --- a/include/llvm/Bytecode/Reader.h +++ b/include/llvm/Bytecode/Reader.h @@ -43,21 +43,31 @@ ModuleProvider *getBytecodeBufferModuleProvider(const unsigned char *Buffer, const std::string &ModuleID="", BytecodeHandler* H = 0); -/// ParseBytecodeFile - Parse the given bytecode file -/// +/// @brief Parse the given bytecode file Module* ParseBytecodeFile(const std::string &Filename, std::string *ErrorStr = 0); -/// ParseBytecodeBuffer - Parse a given bytecode buffer -/// +/// @brief Parse a given bytecode buffer Module* ParseBytecodeBuffer(const unsigned char *Buffer, unsigned BufferSize, const std::string &ModuleID = "", std::string *ErrorStr = 0); -/// ReadArchiveFile - Read bytecode files from the specfied .a file, returning -/// true on error, or false on success. -/// +/// This function will read only the necessary parts of a bytecode file in order +/// to determine the list of dependent libraries encoded within it. The \p +/// deplibs parameter will contain a vector of strings of the bytecode module's +/// dependent libraries. +/// @returns true on success, false otherwise +/// @brief Get the list of dependent libraries from a bytecode file. +bool GetBytecodeDependentLibraries(const std::string &fileName, + std::vector<std::string>& deplibs); + +/// 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); |