diff options
author | Alex Langford <alangford@apple.com> | 2023-05-02 10:05:36 -0700 |
---|---|---|
committer | Alex Langford <alangford@apple.com> | 2023-05-02 17:21:33 -0700 |
commit | c4f3f5225df73cf83042b5e3615549aae0be2422 (patch) | |
tree | 80b1d58ade7093c2ed8c799702e555a2646bedab /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
parent | 50e79d725c105344e292d1fe8044a69467c20346 (diff) | |
download | llvm-c4f3f5225df73cf83042b5e3615549aae0be2422.zip llvm-c4f3f5225df73cf83042b5e3615549aae0be2422.tar.gz llvm-c4f3f5225df73cf83042b5e3615549aae0be2422.tar.bz2 |
[lldb] Remove FileSpec::GetLastPathComponent
As far as I can tell, this just computes the filename of the FileSpec,
which is already conveniently stored in m_filename. We can use
FileSpec::GetFilename() instead.
Differential Revision: https://reviews.llvm.org/D149663
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 11fee6e..937d148 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -623,7 +623,7 @@ size_t ObjectFileELF::GetModuleSpecifications( if (!gnu_debuglink_crc) { LLDB_SCOPED_TIMERF( "Calculating module crc32 %s with size %" PRIu64 " KiB", - file.GetLastPathComponent().AsCString(), + file.GetFilename().AsCString(), (length - file_offset) / 1024); // For core files - which usually don't happen to have a |