diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-19 18:30:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-19 18:30:29 +0000 |
commit | 97716a47a1929c57f6ce2c34d76141fd51071ce1 (patch) | |
tree | 0e4b6781c2940072cbbc48f5b0d7c00dddb66adb /lib/Linker/Linker.cpp | |
parent | b9476d9b45025905146f40370056a985f305bc8e (diff) |
Add support for ".so" files compiled with LLVM which contain LLVM bytecode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/Linker.cpp')
-rw-r--r-- | lib/Linker/Linker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp index ee34cee1d4..19fd861c4d 100644 --- a/lib/Linker/Linker.cpp +++ b/lib/Linker/Linker.cpp @@ -133,7 +133,9 @@ static inline sys::Path IsLibrary(const std::string& Name, FullPath.elideSuffix(); FullPath.appendSuffix(&(LTDL_SHLIB_EXT[1])); - if (FullPath.isDynamicLibrary()) + if (FullPath.isDynamicLibrary()) // Native shared library? + return FullPath; + if (FullPath.isBytecodeFile()) // .so file containing bytecode? return FullPath; FullPath.clear(); |