diff --git a/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp b/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp index 6f43e6add7d5..4efd6ea25f1f 100644 --- a/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp +++ b/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp @@ -60,14 +60,13 @@ MinidumpParser::Create(const lldb::DataBufferSP &data_buf_sp) { 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 &&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 MinidumpParser::GetData() { return llvm::ArrayRef(m_data_sp->GetBytes(), diff --git a/lldb/source/Plugins/Process/minidump/MinidumpParser.h b/lldb/source/Plugins/Process/minidump/MinidumpParser.h index 1814e9afacf6..b1974b329823 100644 --- a/lldb/source/Plugins/Process/minidump/MinidumpParser.h +++ b/lldb/source/Plugins/Process/minidump/MinidumpParser.h @@ -91,11 +91,10 @@ public: private: lldb::DataBufferSP m_data_sp; - const MinidumpHeader *m_header; llvm::DenseMap m_directory_map; MinidumpParser( - const lldb::DataBufferSP &data_buf_sp, const MinidumpHeader *header, + const lldb::DataBufferSP &data_buf_sp, llvm::DenseMap &&directory_map); };