summaryrefslogtreecommitdiff
path: root/lib/Linker
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-11-02 20:32:59 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-11-02 20:32:59 +0000
commitc8aef4b2ea23f7da3668f35872ee5bd8df28bcc0 (patch)
tree72759d3378625197dba79f9da543312a7e897099 /lib/Linker
parent572ec1f3c0fd2386ce8a7dbeb7c15b3ac8ab1878 (diff)
downloadllvm-c8aef4b2ea23f7da3668f35872ee5bd8df28bcc0.tar.gz
llvm-c8aef4b2ea23f7da3668f35872ee5bd8df28bcc0.tar.bz2
llvm-c8aef4b2ea23f7da3668f35872ee5bd8df28bcc0.tar.xz
GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT.
This allows using GetDLLSuffix() with appendSuffix(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/Linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp
index eb3fb6b1c2..19ecaa3965 100644
--- a/lib/Linker/Linker.cpp
+++ b/lib/Linker/Linker.cpp
@@ -133,7 +133,7 @@ static inline sys::Path IsLibrary(StringRef Name,
// Try the libX.so (or .dylib) form
FullPath.eraseSuffix();
- FullPath.appendSuffix(&(LTDL_SHLIB_EXT[1]));
+ FullPath.appendSuffix(sys::Path::GetDLLSuffix());
if (FullPath.isDynamicLibrary()) // Native shared library?
return FullPath;
if (FullPath.isBitcodeFile()) // .so file containing bitcode?