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 | 9908c176669ea0d1c673541bfcf680a552464a61 (patch) | |
tree | 53e04421ff03e2ae90116b5bc50e08ac86d2fdc4 | |
parent | fae30b240b830044af33ef228457a53236fc149b (diff) | |
download | bcm5719-llvm-9908c176669ea0d1c673541bfcf680a552464a61.tar.gz bcm5719-llvm-9908c176669ea0d1c673541bfcf680a552464a61.zip |
struct Init -> class Init
Rename struct Init to class Init for consistency and in preparation
for making Init a FoldingSetNode.
llvm-svn: 135097
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.h | 2 | ||||
-rw-r--r-- | llvm/utils/TableGen/Record.h | 5 | ||||
-rw-r--r-- | llvm/utils/TableGen/SetTheory.h | 2 | ||||
-rw-r--r-- | llvm/utils/TableGen/TGParser.h | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index e4e8574bbca..936fd014645 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/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/llvm/utils/TableGen/Record.h b/llvm/utils/TableGen/Record.h index f24f5e66fa0..2f4080bbfd9 100644 --- a/llvm/utils/TableGen/Record.h +++ b/llvm/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/llvm/utils/TableGen/SetTheory.h b/llvm/utils/TableGen/SetTheory.h index e37a76ee68c..6e8313be07a 100644 --- a/llvm/utils/TableGen/SetTheory.h +++ b/llvm/utils/TableGen/SetTheory.h @@ -55,7 +55,7 @@ namespace llvm { class DagInit; -struct Init; +class Init; class Record; class RecordKeeper; diff --git a/llvm/utils/TableGen/TGParser.h b/llvm/utils/TableGen/TGParser.h index 94a1c2b2b25..dce7e1dec94 100644 --- a/llvm/utils/TableGen/TGParser.h +++ b/llvm/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; |