Remove unneccessary virtual destructor from DwarfExpression.

llvm-svn: 298865
This commit is contained in:
Adrian Prantl 2017-03-27 17:34:04 +00:00
parent f75782f9dc
commit 035862b926
1 changed files with 3 additions and 3 deletions

View File

@ -171,9 +171,9 @@ protected:
/// expression. See PR21176 for more details.
void addStackValue();
~DwarfExpression() = default;
public:
DwarfExpression(unsigned DwarfVersion) : DwarfVersion(DwarfVersion) {}
virtual ~DwarfExpression() {};
/// This needs to be called last to commit any pending changes.
void finalize();
@ -211,7 +211,7 @@ public:
};
/// DwarfExpression implementation for .debug_loc entries.
class DebugLocDwarfExpression : public DwarfExpression {
class DebugLocDwarfExpression final : public DwarfExpression {
ByteStreamer &BS;
void emitOp(uint8_t Op, const char *Comment = nullptr) override;
@ -225,7 +225,7 @@ public:
};
/// DwarfExpression implementation for singular DW_AT_location.
class DIEDwarfExpression : public DwarfExpression {
class DIEDwarfExpression final : public DwarfExpression {
const AsmPrinter ≈
DwarfUnit &DU;
DIELoc ¨