aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-07-22 14:29:29 +0000
committerPavel Labath <pavel@labath.sk>2019-07-22 14:29:29 +0000
commita3189a032a14d2eca8971c0a154bb9777043d226 (patch)
treea6b37333ec801fc1a44d396d6a4479baa168a8e5 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
parent4379a400889c88b2da76d12170df0965ee16c78c (diff)
downloadllvm-a3189a032a14d2eca8971c0a154bb9777043d226.zip
llvm-a3189a032a14d2eca8971c0a154bb9777043d226.tar.gz
llvm-a3189a032a14d2eca8971c0a154bb9777043d226.tar.bz2
ELF: Fix a "memset clearing object of non-trivial type" warning
Just delete the memset as the ELFHeader constructor already zero-initializes the object. Also clean up the ObjectFileELF constructors/desctructors while I'm in there. llvm-svn: 366692
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
index b63a5d1..8abe995 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
@@ -56,8 +56,6 @@ struct ELFNote {
/// the ObjectFile protocol.
class ObjectFileELF : public lldb_private::ObjectFile {
public:
- ~ObjectFileELF() override;
-
// Static Functions
static void Initialize();
@@ -190,7 +188,7 @@ private:
/// ELF .gnu_debuglink file and crc data if available.
std::string m_gnu_debuglink_file;
- uint32_t m_gnu_debuglink_crc;
+ uint32_t m_gnu_debuglink_crc = 0;
/// Collection of program headers.
ProgramHeaderColl m_program_headers;