mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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
This commit is contained in:
parent
068d9a564b
commit
6bc4e712dc
@ -91,6 +91,8 @@ void DWARFDebugLine::LineTable::dump(raw_ostream &OS) const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DWARFDebugLine::State::~State() {}
|
||||||
|
|
||||||
void DWARFDebugLine::State::appendRowToMatrix(uint32_t offset) {
|
void DWARFDebugLine::State::appendRowToMatrix(uint32_t offset) {
|
||||||
++row; // Increase the row number.
|
++row; // Increase the row number.
|
||||||
LineTable::appendRow(*this);
|
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) {
|
void DWARFDebugLine::DumpingState::finalize(uint32_t offset) {
|
||||||
LineTable::dump(OS);
|
LineTable::dump(OS);
|
||||||
}
|
}
|
||||||
|
@ -148,6 +148,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
State() : row(0) {}
|
State() : row(0) {}
|
||||||
|
virtual ~State();
|
||||||
|
|
||||||
virtual void appendRowToMatrix(uint32_t offset);
|
virtual void appendRowToMatrix(uint32_t offset);
|
||||||
virtual void finalize(uint32_t offset) { row = DoneParsingLineTable; }
|
virtual void finalize(uint32_t offset) { row = DoneParsingLineTable; }
|
||||||
@ -160,6 +161,7 @@ public:
|
|||||||
|
|
||||||
struct DumpingState : public State {
|
struct DumpingState : public State {
|
||||||
DumpingState(raw_ostream &OS) : OS(OS) {}
|
DumpingState(raw_ostream &OS) : OS(OS) {}
|
||||||
|
virtual ~DumpingState();
|
||||||
virtual void finalize(uint32_t offset);
|
virtual void finalize(uint32_t offset);
|
||||||
private:
|
private:
|
||||||
raw_ostream &OS;
|
raw_ostream &OS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user