diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-03-27 17:34:04 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-03-27 17:34:04 +0000 |
commit | 035862b926632e72734663b194e6ab5d43d586c5 (patch) | |
tree | 01d1d4f0b8e327c5557c793153bcb10c4b0910ea /llvm/lib/CodeGen | |
parent | f75782f9dc9c98308aa9207e1abf2105a0247ee1 (diff) | |
download | bcm5719-llvm-035862b926632e72734663b194e6ab5d43d586c5.tar.gz bcm5719-llvm-035862b926632e72734663b194e6ab5d43d586c5.zip |
Remove unneccessary virtual destructor from DwarfExpression.
llvm-svn: 298865
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h index bdfa1400fbd..e8dc211eb3c 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 &AP; DwarfUnit &DU; DIELoc &DIE; |