[llvm-commits] [llvm] r135097 - in /llvm/trunk/utils/TableGen: CodeGenDAGPatterns.h Record.h SetTheory.h TGParser.h

David Greene greened at obbligato.org
Wed Jul 13 15:25:51 PDT 2011


Author: greened
Date: Wed Jul 13 17:25:51 2011
New Revision: 135097

URL: http://llvm.org/viewvc/llvm-project?rev=135097&view=rev
Log:
struct Init -> class Init

Rename struct Init to class Init for consistency and in preparation
for making Init a FoldingSetNode.

Modified:
    llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
    llvm/trunk/utils/TableGen/Record.h
    llvm/trunk/utils/TableGen/SetTheory.h
    llvm/trunk/utils/TableGen/TGParser.h

Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h?rev=135097&r1=135096&r2=135097&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h Wed Jul 13 17:25:51 2011
@@ -26,7 +26,7 @@
 
 namespace llvm {
   class Record;
-  struct Init;
+  class Init;
   class ListInit;
   class DagInit;
   class SDNodeInfo;

Modified: llvm/trunk/utils/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/Record.h?rev=135097&r1=135096&r2=135097&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/Record.h (original)
+++ llvm/trunk/utils/TableGen/Record.h Wed Jul 13 17:25:51 2011
@@ -34,7 +34,7 @@
 class RecordRecTy;
 
 // Init subclasses.
-struct Init;
+class Init;
 class UnsetInit;
 class BitInit;
 class BitsInit;
@@ -453,7 +453,8 @@
 //  Initializer Classes
 //===----------------------------------------------------------------------===//
 
-struct Init {
+class Init {
+public:
   virtual ~Init() {}
 
   /// isComplete - This virtual method should be overridden by values that may

Modified: llvm/trunk/utils/TableGen/SetTheory.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/SetTheory.h?rev=135097&r1=135096&r2=135097&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/SetTheory.h (original)
+++ llvm/trunk/utils/TableGen/SetTheory.h Wed Jul 13 17:25:51 2011
@@ -55,7 +55,7 @@
 namespace llvm {
 
 class DagInit;
-struct Init;
+class Init;
 class Record;
 class RecordKeeper;
 

Modified: llvm/trunk/utils/TableGen/TGParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TGParser.h?rev=135097&r1=135096&r2=135097&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/TGParser.h (original)
+++ llvm/trunk/utils/TableGen/TGParser.h Wed Jul 13 17:25:51 2011
@@ -25,7 +25,7 @@
   class RecordVal;
   class RecordKeeper;
   struct RecTy;
-  struct Init;
+  class Init;
   struct MultiClass;
   struct SubClassReference;
   struct SubMultiClassReference;





More information about the llvm-commits mailing list