From 4d0449204e59ec7632dfbcdd1bf97f46e1c7655b Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 15 Sep 2011 03:41:51 +0000 Subject: Give structs with virtual methods a virtual destructor. llvm-svn: 139776 --- llvm/lib/DebugInfo/DWARFDebugLine.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/DebugInfo/DWARFDebugLine.cpp') diff --git a/llvm/lib/DebugInfo/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARFDebugLine.cpp index d2ebc384d90..c2fb111ebcf 100644 --- a/llvm/lib/DebugInfo/DWARFDebugLine.cpp +++ b/llvm/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); } -- cgit v1.2.3