Other minor cleanups while I'm in the area

llvm-svn: 8284
This commit is contained in:
Chris Lattner 2003-09-01 16:38:43 +00:00
parent a060e3f6e9
commit 64d080b435
1 changed files with 3 additions and 10 deletions

View File

@ -83,8 +83,7 @@ public:
class FunctionType : public DerivedType { struct FunctionType : public DerivedType {
public:
typedef std::vector<PATypeHandle> ParamTypes; typedef std::vector<PATypeHandle> ParamTypes;
private: private:
PATypeHandle ResultType; PATypeHandle ResultType;
@ -150,7 +149,6 @@ public:
class CompositeType : public DerivedType { class CompositeType : public DerivedType {
protected: protected:
inline CompositeType(PrimitiveID id) : DerivedType(id) { } inline CompositeType(PrimitiveID id) : DerivedType(id) { }
public: public:
// getTypeAtIndex - Given an index value into the type, return the type of the // getTypeAtIndex - Given an index value into the type, return the type of the
@ -250,7 +248,6 @@ protected:
: CompositeType(TID), ElementType(PATypeHandle(ElType, this)) { : CompositeType(TID), ElementType(PATypeHandle(ElType, this)) {
} }
public: public:
inline const Type *getElementType() const { return ElementType; } inline const Type *getElementType() const { return ElementType; }
virtual const Type *getContainedType(unsigned i) const { virtual const Type *getContainedType(unsigned i) const {
@ -295,7 +292,6 @@ protected:
// from GCC to make them protected: warning: `class ArrayType' only // from GCC to make them protected: warning: `class ArrayType' only
// defines private constructors and has no friends // defines private constructors and has no friends
// Private ctor - Only can be created by a static member... // Private ctor - Only can be created by a static member...
ArrayType(const Type *ElType, unsigned NumEl); ArrayType(const Type *ElType, unsigned NumEl);
public: public:
@ -329,7 +325,6 @@ protected:
// from GCC to make them protected: warning: `class PointerType' only // from GCC to make them protected: warning: `class PointerType' only
// defines private constructors and has no friends // defines private constructors and has no friends
// Private ctor - Only can be created by a static member... // Private ctor - Only can be created by a static member...
PointerType(const Type *ElType); PointerType(const Type *ElType);
public: public:
@ -354,9 +349,8 @@ public:
class OpaqueType : public DerivedType { class OpaqueType : public DerivedType {
private: OpaqueType(const OpaqueType &); // DO NOT IMPLEMENT
OpaqueType(const OpaqueType &); // Do not implement const OpaqueType &operator=(const OpaqueType &); // DO NOT IMPLEMENT
const OpaqueType &operator=(const OpaqueType &); // Do not implement
protected: protected:
// This should really be private, but it squelches a bogus warning // This should really be private, but it squelches a bogus warning
// from GCC to make them protected: warning: `class OpaqueType' only // from GCC to make them protected: warning: `class OpaqueType' only
@ -364,7 +358,6 @@ protected:
// Private ctor - Only can be created by a static member... // Private ctor - Only can be created by a static member...
OpaqueType(); OpaqueType();
public: public:
// get - Static factory method for the OpaqueType class... // get - Static factory method for the OpaqueType class...