[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:
@@ -18,6 +18,7 @@
|
||||
#include "lldb/Core/ModuleSpec.h"
|
||||
#include "lldb/Core/PluginManager.h"
|
||||
#include "lldb/Core/Section.h"
|
||||
#include "lldb/Host/FileSystem.h"
|
||||
#include "lldb/Symbol/DWARFCallFrameInfo.h"
|
||||
#include "lldb/Symbol/SymbolContext.h"
|
||||
#include "lldb/Target/SectionLoadList.h"
|
||||
@@ -713,7 +714,8 @@ size_t ObjectFileELF::GetModuleSpecifications(
|
||||
func_cat,
|
||||
"Calculating module crc32 %s with size %" PRIu64 " KiB",
|
||||
file.GetLastPathComponent().AsCString(),
|
||||
(file.GetByteSize() - file_offset) / 1024);
|
||||
(FileSystem::Instance().GetByteSize(file) - file_offset) /
|
||||
1024);
|
||||
|
||||
// For core files - which usually don't happen to have a
|
||||
// gnu_debuglink, and are pretty bulky - calculating whole
|
||||
|
||||
Reference in New Issue
Block a user