diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-01 04:45:28 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-01 04:45:28 +0000 |
commit | 59b78bcba2c7c20fbf5b4dcd14ea7a23c196a289 (patch) | |
tree | e44d025c11035561b451e9d77d3a401a5d88704f /lldb/source/Target/ModuleCache.cpp | |
parent | 56a5a0c3ce57da8c4c8def9f30b628bcb9a4f87f (diff) | |
download | bcm5719-llvm-59b78bcba2c7c20fbf5b4dcd14ea7a23c196a289.tar.gz bcm5719-llvm-59b78bcba2c7c20fbf5b4dcd14ea7a23c196a289.zip |
[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
Diffstat (limited to 'lldb/source/Target/ModuleCache.cpp')
-rw-r--r-- | lldb/source/Target/ModuleCache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/ModuleCache.cpp b/lldb/source/Target/ModuleCache.cpp index 19adfbabe27..4f4683290aa 100644 --- a/lldb/source/Target/ModuleCache.cpp +++ b/lldb/source/Target/ModuleCache.cpp @@ -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()); |