Make the LinkInFile and LinkInLibrary both return an indication of whether

the file was found to be a native library (and thus not linked by these
functions).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35652 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-04-04 06:32:01 +00:00
parent 20c348978e
commit 58de557181

View File

@ -182,7 +182,8 @@ class Linker {
/// @see getLastError /// @see getLastError
/// @brief Link in a single file. /// @brief Link in a single file.
bool LinkInFile( bool LinkInFile(
const sys::Path& File ///< File to link in. const sys::Path& File, ///< File to link in.
bool &is_native ///< Indicates if the file is native object file
); );
/// This function provides a way to selectively link in a set of modules, /// This function provides a way to selectively link in a set of modules,
@ -212,7 +213,7 @@ class Linker {
/// @brief Link one library into the module /// @brief Link one library into the module
bool LinkInLibrary ( bool LinkInLibrary (
const std::string& Library, ///< The library to link in const std::string& Library, ///< The library to link in
bool& is_file ///< Indicates if lib is really a bc file bool& is_native ///< Indicates if lib a native library
); );
/// This function links one bytecode archive, \p Filename, into the module. /// This function links one bytecode archive, \p Filename, into the module.