aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bytecode
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-15 01:20:11 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-15 01:20:11 +0000
commit766b793143fa863283498233e8962391da09b63a (patch)
tree7a344adee85815f8ae6dddff08bed62bf0d5529d /include/llvm/Bytecode
parent6238a85e4f6931a9572e5d327c3ffa7ce1087d50 (diff)
Changes necessary to enable linking of archives without LLVM symbol tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r--include/llvm/Bytecode/Reader.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h
index a059ca4e93..4c0366330b 100644
--- a/include/llvm/Bytecode/Reader.h
+++ b/include/llvm/Bytecode/Reader.h
@@ -77,11 +77,14 @@ bool GetBytecodeSymbols(const sys::Path& fileName,
/// 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
+/// @returns the ModuleProvider on success, 0 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);
+ModuleProvider* llvm::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<std::string>& symbols ///< The symbols defined in the module
+);
} // End llvm namespace