summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugLine.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-09-15 03:41:51 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-09-15 03:41:51 +0000
commit4d0449204e59ec7632dfbcdd1bf97f46e1c7655b (patch)
tree636ae6b0e8bc61a97cf9024d684889a5e7ad9867 /llvm/lib/DebugInfo/DWARFDebugLine.cpp
parent21b6f1188f9bef3a39a5281543498d451db040e6 (diff)
downloadbcm5719-llvm-4d0449204e59ec7632dfbcdd1bf97f46e1c7655b.tar.gz
bcm5719-llvm-4d0449204e59ec7632dfbcdd1bf97f46e1c7655b.zip
Give structs with virtual methods a virtual destructor.
llvm-svn: 139776
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugLine.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugLine.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}
OpenPOWER on IntegriCloud