mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
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
This commit is contained in:
@ -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?
|
||||
|
Reference in New Issue
Block a user