aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index f24f5e6..2f4080b 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -34,7 +34,7 @@ class DagRecTy;
class RecordRecTy;
// Init subclasses.
-struct Init;
+class Init;
class UnsetInit;
class BitInit;
class BitsInit;
@@ -453,7 +453,8 @@ RecTy *resolveTypes(RecTy *T1, RecTy *T2);
// Initializer Classes
//===----------------------------------------------------------------------===//
-struct Init {
+class Init {
+public:
virtual ~Init() {}
/// isComplete - This virtual method should be overridden by values that may