diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-09 22:26:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-09 22:26:58 +0000 |
| commit | 1117548f9ef9618c85e4cd46431f8e4436cfc705 (patch) | |
| tree | 06a92f8eab5a7f57d14f3392b02e485f68ce110e /llvm | |
| parent | acfd27d5023befbe1a3d6fb7f3292ccfe8d30d17 (diff) | |
| download | bcm5719-llvm-1117548f9ef9618c85e4cd46431f8e4436cfc705.tar.gz bcm5719-llvm-1117548f9ef9618c85e4cd46431f8e4436cfc705.zip | |
Rename contype to subtype
llvm-svn: 522
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CFG.h | 6 | ||||
| -rw-r--r-- | llvm/include/llvm/Type.h | 10 | ||||
| -rw-r--r-- | llvm/lib/VMCore/Type.cpp | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/llvm/include/llvm/CFG.h b/llvm/include/llvm/CFG.h index 377d3196cec..40de3a8bd5c 100644 --- a/llvm/include/llvm/CFG.h +++ b/llvm/include/llvm/CFG.h @@ -205,13 +205,13 @@ struct ConstInverseBasicBlockGraph { struct TypeGraph { typedef const ::Type NodeType; - typedef ::Type::contype_iterator ChildIteratorType; + typedef ::Type::subtype_iterator ChildIteratorType; static inline ChildIteratorType child_begin(NodeType *N) { - return N->contype_begin(); + return N->subtype_begin(); } static inline ChildIteratorType child_end(NodeType *N) { - return N->contype_end(); + return N->subtype_end(); } }; diff --git a/llvm/include/llvm/Type.h b/llvm/include/llvm/Type.h index d5f57cba04b..afc197049d0 100644 --- a/llvm/include/llvm/Type.h +++ b/llvm/include/llvm/Type.h @@ -145,9 +145,9 @@ public: // Type Iteration support // class TypeIterator; - typedef TypeIterator contype_iterator; - inline contype_iterator contype_begin() const; // DEFINED BELOW - inline contype_iterator contype_end() const; // DEFINED BELOW + typedef TypeIterator subtype_iterator; + inline subtype_iterator subtype_begin() const; // DEFINED BELOW + inline subtype_iterator subtype_end() const; // DEFINED BELOW // getContainedType - This method is used to implement the type iterator // (defined a the end of the file). For derived types, this returns the types @@ -243,11 +243,11 @@ private: }; }; -inline Type::TypeIterator Type::contype_begin() const { +inline Type::TypeIterator Type::subtype_begin() const { return TypeIterator(this, 0); } -inline Type::TypeIterator Type::contype_end() const { +inline Type::TypeIterator Type::subtype_end() const { return TypeIterator(this, getNumContainedTypes()); } diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 87fa581a573..d2b23d482d0 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/lib/VMCore/Type.cpp @@ -310,8 +310,8 @@ static bool TypesEqual(const Type *Ty, const Type *Ty2, } // Iterate over the types and make sure the the contents are equivalent... - Type::contype_iterator I = Ty ->contype_begin(), IE = Ty ->contype_end(); - Type::contype_iterator I2 = Ty2->contype_begin(), IE2 = Ty2->contype_end(); + Type::subtype_iterator I = Ty ->subtype_begin(), IE = Ty ->subtype_end(); + Type::subtype_iterator I2 = Ty2->subtype_begin(), IE2 = Ty2->subtype_end(); for (; I != IE && I2 != IE2; ++I, ++I2) if (!TypesEqual(*I, *I2, EqTypes)) return false; |

