diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-02 20:32:59 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-02 20:32:59 +0000 |
commit | 2c3991acf3c78c35b4e977a7ae023924f1443054 (patch) | |
tree | 972c4c760326dbc717fc6abd226266b88983c07c /llvm/tools/llvm-ld/llvm-ld.cpp | |
parent | f26f4a05354868bf576638e750896a0c8dc80515 (diff) | |
download | llvm-2c3991acf3c78c35b4e977a7ae023924f1443054.zip llvm-2c3991acf3c78c35b4e977a7ae023924f1443054.tar.gz llvm-2c3991acf3c78c35b4e977a7ae023924f1443054.tar.bz2 |
GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT.
This allows using GetDLLSuffix() with appendSuffix().
llvm-svn: 118051
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | llvm/tools/llvm-ld/llvm-ld.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index 9277554..a28592b 100644 --- a/llvm/tools/llvm-ld/llvm-ld.cpp +++ b/llvm/tools/llvm-ld/llvm-ld.cpp @@ -455,7 +455,7 @@ static void EmitShellScript(char **argv, Module *M) { E = LibPaths.end(); P != E; ++P) { FullLibraryPath = *P; FullLibraryPath.appendComponent("lib" + *i); - FullLibraryPath.appendSuffix(&(LTDL_SHLIB_EXT[1])); + FullLibraryPath.appendSuffix(sys::Path::GetDLLSuffix()); if (!FullLibraryPath.isEmpty()) { if (!FullLibraryPath.isDynamicLibrary()) { // Not a native shared library; mark as invalid |