[FileSystem] Remove GetByteSize() from FileSpec

This patch removes the GetByteSize method from FileSpec and updates its
uses with calls to the FileSystem.

Differential revision: https://reviews.llvm.org/D53788

llvm-svn: 345812
This commit is contained in:
Jonas Devlieghere
2018-11-01 04:45:28 +00:00
parent 56a5a0c3ce
commit 59b78bcba2
13 changed files with 33 additions and 28 deletions

View File

@@ -227,7 +227,8 @@ Status ModuleCache::Get(const FileSpec &root_dir_spec, const char *hostname,
if (!module_file_path.Exists())
return Status("Module %s not found", module_file_path.GetPath().c_str());
if (module_file_path.GetByteSize() != module_spec.GetObjectSize())
if (FileSystem::Instance().GetByteSize(module_file_path) !=
module_spec.GetObjectSize())
return Status("Module %s has invalid file size",
module_file_path.GetPath().c_str());