From: Chris Lattner Date: Wed, 6 Aug 2003 05:39:03 +0000 (+0000) Subject: All good classes with virtual functions should have virtual dtors... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a7ac3cfabea94734a95d5bfcfc0e9f98c1120c16;p=oota-llvm.git All good classes with virtual functions should have virtual dtors... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7630 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/support/tools/TableGen/TableGenBackend.h b/support/tools/TableGen/TableGenBackend.h index ae71d2c66bc..bd132039b86 100644 --- a/support/tools/TableGen/TableGenBackend.h +++ b/support/tools/TableGen/TableGenBackend.h @@ -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. diff --git a/utils/TableGen/TableGenBackend.h b/utils/TableGen/TableGenBackend.h index ae71d2c66bc..bd132039b86 100644 --- a/utils/TableGen/TableGenBackend.h +++ b/utils/TableGen/TableGenBackend.h @@ -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.