summaryrefslogtreecommitdiff
path: root/include/llvm/DerivedTypes.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-01 16:38:43 +0000
committerChris Lattner <sabre@nondot.org>2003-09-01 16:38:43 +0000
commit01112bd08adde19947c538bd3d70c9e33cc0e81f (patch)
tree9a9b0f4d2c9809599af50bf654c24a95c07f91ca /include/llvm/DerivedTypes.h
parentc87c80dce0047d596c1bb0a67353e00d2b2fcf41 (diff)
downloadllvm-01112bd08adde19947c538bd3d70c9e33cc0e81f.tar.gz
llvm-01112bd08adde19947c538bd3d70c9e33cc0e81f.tar.bz2
llvm-01112bd08adde19947c538bd3d70c9e33cc0e81f.tar.xz
Other minor cleanups while I'm in the area
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DerivedTypes.h')
-rw-r--r--include/llvm/DerivedTypes.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index 0cabdab49c..111f6f794e 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -83,8 +83,7 @@ public:
-class FunctionType : public DerivedType {
-public:
+struct FunctionType : public DerivedType {
typedef std::vector<PATypeHandle> ParamTypes;
private:
PATypeHandle ResultType;
@@ -150,7 +149,6 @@ public:
class CompositeType : public DerivedType {
protected:
inline CompositeType(PrimitiveID id) : DerivedType(id) { }
-
public:
// getTypeAtIndex - Given an index value into the type, return the type of the
@@ -250,7 +248,6 @@ protected:
: CompositeType(TID), ElementType(PATypeHandle(ElType, this)) {
}
public:
-
inline const Type *getElementType() const { return ElementType; }
virtual const Type *getContainedType(unsigned i) const {
@@ -295,7 +292,6 @@ protected:
// from GCC to make them protected: warning: `class ArrayType' only
// defines private constructors and has no friends
-
// Private ctor - Only can be created by a static member...
ArrayType(const Type *ElType, unsigned NumEl);
public:
@@ -329,7 +325,6 @@ protected:
// from GCC to make them protected: warning: `class PointerType' only
// defines private constructors and has no friends
-
// Private ctor - Only can be created by a static member...
PointerType(const Type *ElType);
public:
@@ -354,9 +349,8 @@ public:
class OpaqueType : public DerivedType {
-private:
- OpaqueType(const OpaqueType &); // Do not implement
- const OpaqueType &operator=(const OpaqueType &); // Do not implement
+ OpaqueType(const OpaqueType &); // DO NOT IMPLEMENT
+ const OpaqueType &operator=(const OpaqueType &); // DO NOT IMPLEMENT
protected:
// This should really be private, but it squelches a bogus warning
// 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...
OpaqueType();
-
public:
// get - Static factory method for the OpaqueType class...