[llvm-commits] [llvm] r69129 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Dan Gohman gohman at apple.com
Tue Apr 14 18:47:03 PDT 2009


Author: djg
Date: Tue Apr 14 20:47:03 2009
New Revision: 69129

URL: http://llvm.org/viewvc/llvm-project?rev=69129&view=rev
Log:
Don't use "protected:" in classes that aren't intended to be
subclassed.

Modified:
    llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=69129&r1=69128&r2=69129&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Tue Apr 14 20:47:03 2009
@@ -1703,7 +1703,6 @@
 
 class ConstantSDNode : public SDNode {
   const ConstantInt *Value;
-protected:
   friend class SelectionDAG;
   ConstantSDNode(bool isTarget, const ConstantInt *val, MVT VT)
     : SDNode(isTarget ? ISD::TargetConstant : ISD::Constant,
@@ -1728,7 +1727,6 @@
 
 class ConstantFPSDNode : public SDNode {
   const ConstantFP *Value;
-protected:
   friend class SelectionDAG;
   ConstantFPSDNode(bool isTarget, const ConstantFP *val, MVT VT)
     : SDNode(isTarget ? ISD::TargetConstantFP : ISD::ConstantFP,
@@ -1771,7 +1769,6 @@
 class GlobalAddressSDNode : public SDNode {
   GlobalValue *TheGlobal;
   int64_t Offset;
-protected:
   friend class SelectionDAG;
   GlobalAddressSDNode(bool isTarget, const GlobalValue *GA, MVT VT,
                       int64_t o = 0);
@@ -1791,7 +1788,6 @@
 
 class FrameIndexSDNode : public SDNode {
   int FI;
-protected:
   friend class SelectionDAG;
   FrameIndexSDNode(int fi, MVT VT, bool isTarg)
     : SDNode(isTarg ? ISD::TargetFrameIndex : ISD::FrameIndex,
@@ -1810,7 +1806,6 @@
 
 class JumpTableSDNode : public SDNode {
   int JTI;
-protected:
   friend class SelectionDAG;
   JumpTableSDNode(int jti, MVT VT, bool isTarg)
     : SDNode(isTarg ? ISD::TargetJumpTable : ISD::JumpTable,
@@ -1834,7 +1829,6 @@
   } Val;
   int Offset;  // It's a MachineConstantPoolValue if top bit is set.
   unsigned Alignment;  // Minimum alignment requirement of CP (not log2 value).
-protected:
   friend class SelectionDAG;
   ConstantPoolSDNode(bool isTarget, Constant *c, MVT VT, int o=0)
     : SDNode(isTarget ? ISD::TargetConstantPool : ISD::ConstantPool,
@@ -1903,7 +1897,6 @@
 
 class BasicBlockSDNode : public SDNode {
   MachineBasicBlock *MBB;
-protected:
   friend class SelectionDAG;
   /// Debug info is meaningful and potentially useful here, but we create
   /// blocks out of order when they're jumped to, which makes it a bit
@@ -1957,7 +1950,6 @@
 ///
 class SrcValueSDNode : public SDNode {
   const Value *V;
-protected:
   friend class SelectionDAG;
   /// Create a SrcValue for a general value.
   explicit SrcValueSDNode(const Value *v)
@@ -1980,7 +1972,6 @@
 /// and ISD::STORE have been lowered.
 ///
 class MemOperandSDNode : public SDNode {
-protected:
   friend class SelectionDAG;
   /// Create a MachineMemOperand node
   explicit MemOperandSDNode(const MachineMemOperand &mo)
@@ -2000,7 +1991,6 @@
 
 class RegisterSDNode : public SDNode {
   unsigned Reg;
-protected:
   friend class SelectionDAG;
   RegisterSDNode(unsigned reg, MVT VT)
     : SDNode(ISD::Register, DebugLoc::getUnknownLoc(),
@@ -2021,7 +2011,6 @@
   unsigned Line;
   unsigned Column;
   Value *CU;
-protected:
   friend class SelectionDAG;
   DbgStopPointSDNode(SDValue ch, unsigned l, unsigned c,
                      Value *cu)
@@ -2043,7 +2032,6 @@
 class LabelSDNode : public SDNode {
   SDUse Chain;
   unsigned LabelID;
-protected:
   friend class SelectionDAG;
 LabelSDNode(unsigned NodeTy, DebugLoc dl, SDValue ch, unsigned id)
     : SDNode(NodeTy, dl, getSDVTList(MVT::Other)), LabelID(id) {
@@ -2061,7 +2049,6 @@
 
 class ExternalSymbolSDNode : public SDNode {
   const char *Symbol;
-protected:
   friend class SelectionDAG;
   ExternalSymbolSDNode(bool isTarget, const char *Sym, MVT VT)
     : SDNode(isTarget ? ISD::TargetExternalSymbol : ISD::ExternalSymbol,
@@ -2081,7 +2068,6 @@
 
 class CondCodeSDNode : public SDNode {
   ISD::CondCode Condition;
-protected:
   friend class SelectionDAG;
   explicit CondCodeSDNode(ISD::CondCode Cond)
     : SDNode(ISD::CONDCODE, DebugLoc::getUnknownLoc(),
@@ -2101,7 +2087,6 @@
 /// future and most targets don't support it.
 class CvtRndSatSDNode : public SDNode {
   ISD::CvtCode CvtCode;
-protected:
   friend class SelectionDAG;
   explicit CvtRndSatSDNode(MVT VT, DebugLoc dl, const SDValue *Ops,
                            unsigned NumOps, ISD::CvtCode Code)
@@ -2206,7 +2191,6 @@
 /// ARG_FLAGSSDNode - Leaf node holding parameter flags.
 class ARG_FLAGSSDNode : public SDNode {
   ISD::ArgFlagsTy TheFlags;
-protected:
   friend class SelectionDAG;
   explicit ARG_FLAGSSDNode(ISD::ArgFlagsTy Flags)
     : SDNode(ISD::ARG_FLAGS, DebugLoc::getUnknownLoc(),
@@ -2230,7 +2214,6 @@
   // will expand the size of the representation.  At the moment we only
   // need Inreg.
   bool Inreg;
-protected:
   friend class SelectionDAG;
   CallSDNode(unsigned cc, DebugLoc dl, bool isvararg, bool istailcall,
              bool isinreg, SDVTList VTs, const SDValue *Operands,
@@ -2275,7 +2258,6 @@
 /// to parameterize some operations.
 class VTSDNode : public SDNode {
   MVT ValueType;
-protected:
   friend class SelectionDAG;
   explicit VTSDNode(MVT VT)
     : SDNode(ISD::VALUETYPE, DebugLoc::getUnknownLoc(),
@@ -2294,7 +2276,6 @@
 /// LSBaseSDNode - Base class for LoadSDNode and StoreSDNode
 ///
 class LSBaseSDNode : public MemSDNode {
-protected:
   //! Operand array for load and store
   /*!
     \note Moving this array to the base class captures more
@@ -2341,7 +2322,6 @@
 /// LoadSDNode - This class is used to represent ISD::LOAD nodes.
 ///
 class LoadSDNode : public LSBaseSDNode {
-protected:
   friend class SelectionDAG;
   LoadSDNode(SDValue *ChainPtrOff, DebugLoc dl, SDVTList VTs,
              ISD::MemIndexedMode AM, ISD::LoadExtType ETy, MVT LVT,
@@ -2371,7 +2351,6 @@
 /// StoreSDNode - This class is used to represent ISD::STORE nodes.
 ///
 class StoreSDNode : public LSBaseSDNode {
-protected:
   friend class SelectionDAG;
   StoreSDNode(SDValue *ChainValuePtrOff, DebugLoc dl, SDVTList VTs,
               ISD::MemIndexedMode AM, bool isTrunc, MVT SVT,





More information about the llvm-commits mailing list