diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-09-15 03:41:51 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-09-15 03:41:51 +0000 |
commit | 6bc4e712dc35db68a621f54c176f6e0b14f40f97 (patch) | |
tree | 0b00bd6ce264ca6d6ff377057e2a80bd88d24c95 /lib/DebugInfo/DWARFDebugLine.cpp | |
parent | 068d9a564b6010787992597f75e2065ceffb53ea (diff) | |
download | llvm-6bc4e712dc35db68a621f54c176f6e0b14f40f97.tar.gz llvm-6bc4e712dc35db68a621f54c176f6e0b14f40f97.tar.bz2 llvm-6bc4e712dc35db68a621f54c176f6e0b14f40f97.tar.xz |
Give structs with virtual methods a virtual destructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFDebugLine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.cpp b/lib/DebugInfo/DWARFDebugLine.cpp index d2ebc384d9..c2fb111ebc 100644 --- a/lib/DebugInfo/DWARFDebugLine.cpp +++ b/lib/DebugInfo/DWARFDebugLine.cpp @@ -91,6 +91,8 @@ void DWARFDebugLine::LineTable::dump(raw_ostream &OS) const { } } +DWARFDebugLine::State::~State() {} + void DWARFDebugLine::State::appendRowToMatrix(uint32_t offset) { ++row; // Increase the row number. LineTable::appendRow(*this); @@ -117,6 +119,8 @@ void DWARFDebugLine::parse(const DataExtractor debug_line_data) { } } +DWARFDebugLine::DumpingState::~DumpingState() {} + void DWARFDebugLine::DumpingState::finalize(uint32_t offset) { LineTable::dump(OS); } |