All good classes with virtual functions should have virtual dtors...
authorChris Lattner <sabre@nondot.org>
Wed, 6 Aug 2003 05:39:03 +0000 (05:39 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 6 Aug 2003 05:39:03 +0000 (05:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7630 91177308-0d34-0410-b5e6-96231b3b80d8

support/tools/TableGen/TableGenBackend.h
utils/TableGen/TableGenBackend.h

index ae71d2c66bc53150799f6f16ecb65efd401ca8ff..bd132039b86154ba31ba4e3fe3006e337ee3ccc7 100644 (file)
@@ -14,6 +14,7 @@ class Record;
 class RecordKeeper;
 
 struct TableGenBackend {
+  virtual ~TableGenBackend() {}
 
   // run - All TableGen backends should implement the run method, which should
   // be the main entry point.
index ae71d2c66bc53150799f6f16ecb65efd401ca8ff..bd132039b86154ba31ba4e3fe3006e337ee3ccc7 100644 (file)
@@ -14,6 +14,7 @@ class Record;
 class RecordKeeper;
 
 struct TableGenBackend {
+  virtual ~TableGenBackend() {}
 
   // run - All TableGen backends should implement the run method, which should
   // be the main entry point.