[Lldb-commits] [lldb] r336884 - Remove unused variable m_header as it hasn't been used since it was
Eric Christopher via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 11 20:52:45 PDT 2018
Author: echristo
Date: Wed Jul 11 20:52:45 2018
New Revision: 336884
URL: http://llvm.org/viewvc/llvm-project?rev=336884&view=rev
Log:
Remove unused variable m_header as it hasn't been used since it was
added in 2016.
Modified:
lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.cpp
lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.h
Modified: lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.cpp?rev=336884&r1=336883&r2=336884&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.cpp (original)
+++ lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.cpp Wed Jul 11 20:52:45 2018
@@ -60,14 +60,13 @@ MinidumpParser::Create(const lldb::DataB
directory->location;
}
- return MinidumpParser(data_buf_sp, header, std::move(directory_map));
+ return MinidumpParser(data_buf_sp, std::move(directory_map));
}
MinidumpParser::MinidumpParser(
- const lldb::DataBufferSP &data_buf_sp, const MinidumpHeader *header,
+ const lldb::DataBufferSP &data_buf_sp,
llvm::DenseMap<uint32_t, MinidumpLocationDescriptor> &&directory_map)
- : m_data_sp(data_buf_sp), m_header(header), m_directory_map(directory_map) {
-}
+ : m_data_sp(data_buf_sp), m_directory_map(directory_map) {}
llvm::ArrayRef<uint8_t> MinidumpParser::GetData() {
return llvm::ArrayRef<uint8_t>(m_data_sp->GetBytes(),
Modified: lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.h?rev=336884&r1=336883&r2=336884&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.h (original)
+++ lldb/trunk/source/Plugins/Process/minidump/MinidumpParser.h Wed Jul 11 20:52:45 2018
@@ -91,11 +91,10 @@ public:
private:
lldb::DataBufferSP m_data_sp;
- const MinidumpHeader *m_header;
llvm::DenseMap<uint32_t, MinidumpLocationDescriptor> m_directory_map;
MinidumpParser(
- const lldb::DataBufferSP &data_buf_sp, const MinidumpHeader *header,
+ const lldb::DataBufferSP &data_buf_sp,
llvm::DenseMap<uint32_t, MinidumpLocationDescriptor> &&directory_map);
};
More information about the lldb-commits
mailing list