mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
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
This commit is contained in:
parent
9461bd7996
commit
33e2fcd6f5
@ -72,15 +72,16 @@ bool GetBytecodeDependentLibraries(const std::string &fileName,
|
|||||||
bool GetBytecodeSymbols(const sys::Path& fileName,
|
bool GetBytecodeSymbols(const sys::Path& fileName,
|
||||||
std::vector<std::string>& syms);
|
std::vector<std::string>& syms);
|
||||||
|
|
||||||
/// Read bytecode files from the specfied archive (.a) file, convert them
|
/// This function will read only the necessary parts of a bytecode buffer in
|
||||||
/// to Module* and provide them in the \p Objects argument. If an error
|
/// order to obtain a list of externally visible global symbols that the
|
||||||
/// occurs, ErrorStr (if non-null) will be set to a string explaining
|
/// bytecode module defines. This is used for archiving and linking when only
|
||||||
/// the error.
|
/// the list of symbols the module defines is needed and the bytecode is
|
||||||
/// @return true on error, false on success.
|
/// already in memory.
|
||||||
/// @brief Get a vector of Module* from a bytecode archive file
|
/// @returns true on success, false if the bytecode can't be parsed
|
||||||
bool ReadArchiveFile(const std::string &Filename,
|
/// @brief Get a bytecode file's externally visibile defined global symbols.
|
||||||
std::vector<Module*> &Objects,
|
bool llvm::GetBytecodeSymbols(const unsigned char*Buffer, unsigned Length,
|
||||||
std::string *ErrorStr = 0);
|
const std::string& ModuleID,
|
||||||
|
std::vector<std::string>& symbols);
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user