1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Don't use "protected:" in classes that aren't intended to be

subclassed.

llvm-svn: 69129
This commit is contained in:
Dan Gohman 2009-04-15 01:47:03 +00:00
parent f023ab3fae
commit a1eee28415

View File

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