mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +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:
@@ -582,7 +582,7 @@ bool ObjectFile::SplitArchivePathWithObject(const char *path_with_object,
|
||||
std::string obj;
|
||||
if (regex_match.GetMatchAtIndex(path_with_object, 1, path) &&
|
||||
regex_match.GetMatchAtIndex(path_with_object, 2, obj)) {
|
||||
archive_file.SetFile(path, false, FileSpec::Style::native);
|
||||
archive_file.SetFile(path, FileSpec::Style::native);
|
||||
archive_object.SetCString(obj.c_str());
|
||||
if (must_exist && !FileSystem::Instance().Exists(archive_file))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user