mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00: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:
1 parent
56a5a0c3ce
commit
59b78bcba2
13 files changed
+33
-28
No files matched your search
@@ -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