From c8aef4b2ea23f7da3668f35872ee5bd8df28bcc0 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 2 Nov 2010 20:32:59 +0000 Subject: 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 --- lib/System/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/System') diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index ae166a574d..8fc4153acb 100644 --- a/lib/System/Path.cpp +++ b/lib/System/Path.cpp @@ -192,7 +192,7 @@ Path::FindLibrary(std::string& name) { } StringRef Path::GetDLLSuffix() { - return LTDL_SHLIB_EXT; + return &(LTDL_SHLIB_EXT[1]); } bool -- cgit v1.2.3