Skip to content

Commit

Permalink
Don't use "protected:" in classes that aren't intended to be
Browse files Browse the repository at this point in the history
subclassed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69129 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Dan Gohman committed Apr 15, 2009
1 parent a97e68c commit 340860d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions include/llvm/CodeGen/SelectionDAGNodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,6 @@ class MemIntrinsicSDNode : public MemSDNode {

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,
Expand All @@ -1728,7 +1727,6 @@ class ConstantSDNode : public SDNode {

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,
Expand Down Expand Up @@ -1771,7 +1769,6 @@ class ConstantFPSDNode : public SDNode {
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);
Expand All @@ -1791,7 +1788,6 @@ class GlobalAddressSDNode : public SDNode {

class FrameIndexSDNode : public SDNode {
int FI;
protected:
friend class SelectionDAG;
FrameIndexSDNode(int fi, MVT VT, bool isTarg)
: SDNode(isTarg ? ISD::TargetFrameIndex : ISD::FrameIndex,
Expand All @@ -1810,7 +1806,6 @@ class FrameIndexSDNode : public SDNode {

class JumpTableSDNode : public SDNode {
int JTI;
protected:
friend class SelectionDAG;
JumpTableSDNode(int jti, MVT VT, bool isTarg)
: SDNode(isTarg ? ISD::TargetJumpTable : ISD::JumpTable,
Expand All @@ -1834,7 +1829,6 @@ class ConstantPoolSDNode : public SDNode {
} 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,
Expand Down Expand Up @@ -1903,7 +1897,6 @@ class ConstantPoolSDNode : public SDNode {

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
Expand Down Expand Up @@ -1957,7 +1950,6 @@ class BuildVectorSDNode : public SDNode {
///
class SrcValueSDNode : public SDNode {
const Value *V;
protected:
friend class SelectionDAG;
/// Create a SrcValue for a general value.
explicit SrcValueSDNode(const Value *v)
Expand All @@ -1980,7 +1972,6 @@ class SrcValueSDNode : public SDNode {
/// and ISD::STORE have been lowered.
///
class MemOperandSDNode : public SDNode {
protected:
friend class SelectionDAG;
/// Create a MachineMemOperand node
explicit MemOperandSDNode(const MachineMemOperand &mo)
Expand All @@ -2000,7 +1991,6 @@ class MemOperandSDNode : public SDNode {

class RegisterSDNode : public SDNode {
unsigned Reg;
protected:
friend class SelectionDAG;
RegisterSDNode(unsigned reg, MVT VT)
: SDNode(ISD::Register, DebugLoc::getUnknownLoc(),
Expand All @@ -2021,7 +2011,6 @@ class DbgStopPointSDNode : public SDNode {
unsigned Line;
unsigned Column;
Value *CU;
protected:
friend class SelectionDAG;
DbgStopPointSDNode(SDValue ch, unsigned l, unsigned c,
Value *cu)
Expand All @@ -2043,7 +2032,6 @@ class DbgStopPointSDNode : public SDNode {
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) {
Expand All @@ -2061,7 +2049,6 @@ LabelSDNode(unsigned NodeTy, DebugLoc dl, SDValue ch, unsigned id)

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,
Expand All @@ -2081,7 +2068,6 @@ class ExternalSymbolSDNode : public SDNode {

class CondCodeSDNode : public SDNode {
ISD::CondCode Condition;
protected:
friend class SelectionDAG;
explicit CondCodeSDNode(ISD::CondCode Cond)
: SDNode(ISD::CONDCODE, DebugLoc::getUnknownLoc(),
Expand All @@ -2101,7 +2087,6 @@ class CondCodeSDNode : public SDNode {
/// 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)
Expand Down Expand Up @@ -2206,7 +2191,6 @@ namespace ISD {
/// 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(),
Expand All @@ -2230,7 +2214,6 @@ class CallSDNode : public SDNode {
// 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,
Expand Down Expand Up @@ -2275,7 +2258,6 @@ class CallSDNode : public SDNode {
/// to parameterize some operations.
class VTSDNode : public SDNode {
MVT ValueType;
protected:
friend class SelectionDAG;
explicit VTSDNode(MVT VT)
: SDNode(ISD::VALUETYPE, DebugLoc::getUnknownLoc(),
Expand All @@ -2294,7 +2276,6 @@ class VTSDNode : public SDNode {
/// 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
Expand Down Expand Up @@ -2341,7 +2322,6 @@ class LSBaseSDNode : public MemSDNode {
/// 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,
Expand Down Expand Up @@ -2371,7 +2351,6 @@ class LoadSDNode : public LSBaseSDNode {
/// 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,
Expand Down

0 comments on commit 340860d

Please sign in to comment.