DAGSize should not be public.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 1 Jul 2008 18:49:06 +0000 (18:49 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 1 Jul 2008 18:49:06 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52977 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGISel.h

index 3ebe515b38be8d6f36a7fd279245e1e0fe1a48c7..c5aa77a9a5945e00f28a878b8258a429c995690e 100644 (file)
@@ -41,14 +41,13 @@ public:
   SelectionDAG *CurDAG;
   MachineBasicBlock *BB;
   AliasAnalysis *AA;
-  std::vector<SDNode*> TopOrder;
-  unsigned DAGSize;
   CollectorMetadata *GCI;
   bool FastISel;
+  std::vector<SDNode*> TopOrder;
   static char ID;
 
   explicit SelectionDAGISel(TargetLowering &tli, bool fast = false) : 
-    FunctionPass((intptr_t)&ID), TLI(tli), DAGSize(0), GCI(0), FastISel(fast) {}
+    FunctionPass((intptr_t)&ID), TLI(tli), GCI(0), FastISel(fast), DAGSize(0) {}
   
   TargetLowering &getTargetLowering() { return TLI; }
 
@@ -163,6 +162,10 @@ public:
   };
   
 protected:
+  /// DAGSize - Size of DAG being instruction selected.
+  ///
+  unsigned DAGSize;
+
   /// SelectInlineAsmMemoryOperands - Calls to this are automatically generated
   /// by tblgen.  Others should not call it.
   void SelectInlineAsmMemoryOperands(std::vector<SDOperand> &Ops,