diff options
author | David Greene <greened@obbligato.org> | 2011-07-13 22:25:51 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-07-13 22:25:51 +0000 |
commit | afd54269ab9951c0dcdea076c4d6f48a345e9d27 (patch) | |
tree | bb052f74a1a5a50fd6d615f6c0d25e1a2b3628c9 /utils | |
parent | 54c74e906a622c1a2d95d2fc11a7dae88a61963e (diff) |
struct Init -> class Init
Rename struct Init to class Init for consistency and in preparation
for making Init a FoldingSetNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.h | 2 | ||||
-rw-r--r-- | utils/TableGen/Record.h | 5 | ||||
-rw-r--r-- | utils/TableGen/SetTheory.h | 2 | ||||
-rw-r--r-- | utils/TableGen/TGParser.h | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index e4e8574bbc..936fd01464 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -26,7 +26,7 @@ namespace llvm { class Record; - struct Init; + class Init; class ListInit; class DagInit; class SDNodeInfo; diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index f24f5e66fa..2f4080bbfd 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 diff --git a/utils/TableGen/SetTheory.h b/utils/TableGen/SetTheory.h index e37a76ee68..6e8313be07 100644 --- a/utils/TableGen/SetTheory.h +++ b/utils/TableGen/SetTheory.h @@ -55,7 +55,7 @@ namespace llvm { class DagInit; -struct Init; +class Init; class Record; class RecordKeeper; diff --git a/utils/TableGen/TGParser.h b/utils/TableGen/TGParser.h index 94a1c2b2b2..dce7e1dec9 100644 --- a/utils/TableGen/TGParser.h +++ b/utils/TableGen/TGParser.h @@ -25,7 +25,7 @@ namespace llvm { class RecordVal; class RecordKeeper; struct RecTy; - struct Init; + class Init; struct MultiClass; struct SubClassReference; struct SubMultiClassReference; |