[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:
@@ -114,7 +114,8 @@ SBModuleSpecList::~SBModuleSpecList() {}
|
||||
|
||||
SBModuleSpecList SBModuleSpecList::GetModuleSpecifications(const char *path) {
|
||||
SBModuleSpecList specs;
|
||||
FileSpec file_spec(path, true);
|
||||
FileSpec file_spec(path);
|
||||
FileSystem::Instance().Resolve(file_spec);
|
||||
Host::ResolveExecutableInBundle(file_spec);
|
||||
ObjectFile::GetModuleSpecifications(file_spec, 0, 0, *specs.m_opaque_ap);
|
||||
return specs;
|
||||
|
||||
Reference in New Issue
Block a user