From 035862b926632e72734663b194e6ab5d43d586c5 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 27 Mar 2017 17:34:04 +0000 Subject: [PATCH] Remove unneccessary virtual destructor from DwarfExpression. llvm-svn: 298865 --- llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h index bdfa1400fbdf..e8dc211eb3c2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h @@ -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 ¨ -- 2.34.1