diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 06:32:01 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 06:32:01 +0000 |
| commit | 58de5571817e08c05c7ef22a1d9146b84773e800 (patch) | |
| tree | 77e2503f60891387dad74f0d5d3bf3c75bd21a90 | |
| parent | 20c348978ea0d3ec7177fab801d619ccbe7d815f (diff) | |
| download | external_llvm-58de5571817e08c05c7ef22a1d9146b84773e800.zip external_llvm-58de5571817e08c05c7ef22a1d9146b84773e800.tar.gz external_llvm-58de5571817e08c05c7ef22a1d9146b84773e800.tar.bz2 | |
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
| -rw-r--r-- | include/llvm/Linker.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Linker.h b/include/llvm/Linker.h index 460cad4..160a069 100644 --- a/include/llvm/Linker.h +++ b/include/llvm/Linker.h @@ -182,7 +182,8 @@ class Linker { /// @see getLastError /// @brief Link in a single file. 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, @@ -212,7 +213,7 @@ class Linker { /// @brief Link one library into the module bool LinkInLibrary ( 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. |
