]> granicus.if.org Git - llvm/commitdiff
Remove unneccessary virtual destructor from DwarfExpression.
authorAdrian Prantl <aprantl@apple.com>
Mon, 27 Mar 2017 17:34:04 +0000 (17:34 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 27 Mar 2017 17:34:04 +0000 (17:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298865 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfExpression.h

index bdfa1400fbdf8fe6b6245e06774543994cbef388..e8dc211eb3c22778739ab0f7157804eb708d457b 100644 (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 &AP;
   DwarfUnit &DU;
   DIELoc &DIE;