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/Symbol/ObjectFile.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/Symbol/ObjectFile.cpp')
-rw-r--r-- | lldb/source/Symbol/ObjectFile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ObjectFile.cpp b/lldb/source/Symbol/ObjectFile.cpp index 937766d492e..a5cd36d6e65 100644 --- a/lldb/source/Symbol/ObjectFile.cpp +++ b/lldb/source/Symbol/ObjectFile.cpp @@ -91,7 +91,7 @@ ObjectFile::FindPlugin(const lldb::ModuleSP &module_sp, const FileSpec *file, const bool must_exist = true; if (ObjectFile::SplitArchivePathWithObject( path_with_object, archive_file, archive_object, must_exist)) { - file_size = archive_file.GetByteSize(); + file_size = FileSystem::Instance().GetByteSize(archive_file); if (file_size > 0) { file = &archive_file; module_sp->SetFileSpecAndObjectName(archive_file, archive_object); @@ -212,7 +212,8 @@ size_t ObjectFile::GetModuleSpecifications(const FileSpec &file, DataBufferSP data_sp = DataBufferLLVM::CreateSliceFromPath(file.GetPath(), 512, file_offset); if (data_sp) { if (file_size == 0) { - const lldb::offset_t actual_file_size = file.GetByteSize(); + const lldb::offset_t actual_file_size = + FileSystem::Instance().GetByteSize(file); if (actual_file_size > file_offset) file_size = actual_file_size - file_offset; } |