mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 17:01:00 +08:00
[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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user