mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:12:19 +08:00
[FileSystem] Move path resolution logic out of FileSpec
This patch removes the logic for resolving paths out of FileSpec and updates call sites to rely on the FileSystem class instead. Differential revision: https://reviews.llvm.org/D53915 llvm-svn: 345890
This commit is contained in:
@@ -103,8 +103,8 @@ LoadPluginCallback(void *baton, llvm::sys::fs::file_type ft,
|
||||
// file type information.
|
||||
if (ft == fs::file_type::regular_file || ft == fs::file_type::symlink_file ||
|
||||
ft == fs::file_type::type_unknown) {
|
||||
FileSpec plugin_file_spec(path, false);
|
||||
plugin_file_spec.ResolvePath();
|
||||
FileSpec plugin_file_spec(path);
|
||||
FileSystem::Instance().Resolve(plugin_file_spec);
|
||||
|
||||
if (PluginIsLoaded(plugin_file_spec))
|
||||
return FileSystem::eEnumerateDirectoryResultNext;
|
||||
|
||||
Reference in New Issue
Block a user