mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
[FileSpec] Delegate common operations to llvm::sys::path
With the recent changes in FileSpec to use LLVM's path style, it is possible to delegate a bunch of common path operations to LLVM's path helpers. This means we only have to maintain a single implementation and at the same time can benefit from the efforts made by the rest of the LLVM community. This is part one of a set of patches. There was no obvious way to split this so I just worked from top to bottom. Differential revision: https://reviews.llvm.org/D48084 llvm-svn: 334615
This commit is contained in:
@@ -605,8 +605,8 @@ LoadPluginCallback(void *baton, llvm::sys::fs::file_type ft,
|
||||
const FileSpec &file_spec) {
|
||||
Status error;
|
||||
|
||||
static ConstString g_dylibext("dylib");
|
||||
static ConstString g_solibext("so");
|
||||
static ConstString g_dylibext(".dylib");
|
||||
static ConstString g_solibext(".so");
|
||||
|
||||
if (!baton)
|
||||
return FileSpec::eEnumerateDirectoryResultQuit;
|
||||
|
||||
Reference in New Issue
Block a user