summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/DebugInfo/DWARFDebugLine.cpp4
-rw-r--r--lib/DebugInfo/DWARFDebugLine.h2
2 files changed, 6 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);
}
diff --git a/lib/DebugInfo/DWARFDebugLine.h b/lib/DebugInfo/DWARFDebugLine.h
index 459bb5f723..e50c4a9e74 100644
--- a/lib/DebugInfo/DWARFDebugLine.h
+++ b/lib/DebugInfo/DWARFDebugLine.h
@@ -148,6 +148,7 @@ public:
};
State() : row(0) {}
+ virtual ~State();
virtual void appendRowToMatrix(uint32_t offset);
virtual void finalize(uint32_t offset) { row = DoneParsingLineTable; }
@@ -160,6 +161,7 @@ public:
struct DumpingState : public State {
DumpingState(raw_ostream &OS) : OS(OS) {}
+ virtual ~DumpingState();
virtual void finalize(uint32_t offset);
private:
raw_ostream &OS;