Deleted Added
full compact
Type.h (256281) Type.h (263508)
1//===-- llvm/Type.h - Classes for handling data types -----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 310 unchanged lines hidden (view full) ---

319
320 //===--------------------------------------------------------------------===//
321 // Type Iteration support.
322 //
323 typedef Type * const *subtype_iterator;
324 subtype_iterator subtype_begin() const { return ContainedTys; }
325 subtype_iterator subtype_end() const { return &ContainedTys[NumContainedTys];}
326
1//===-- llvm/Type.h - Classes for handling data types -----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 310 unchanged lines hidden (view full) ---

319
320 //===--------------------------------------------------------------------===//
321 // Type Iteration support.
322 //
323 typedef Type * const *subtype_iterator;
324 subtype_iterator subtype_begin() const { return ContainedTys; }
325 subtype_iterator subtype_end() const { return &ContainedTys[NumContainedTys];}
326
327 typedef std::reverse_iterator<subtype_iterator> subtype_reverse_iterator;
328 subtype_reverse_iterator subtype_rbegin() const {
329 return subtype_reverse_iterator(subtype_end());
330 }
331 subtype_reverse_iterator subtype_rend() const {
332 return subtype_reverse_iterator(subtype_begin());
333 }
334
327 /// getContainedType - This method is used to implement the type iterator
328 /// (defined a the end of the file). For derived types, this returns the
329 /// types 'contained' in the derived type.
330 ///
331 Type *getContainedType(unsigned i) const {
332 assert(i < NumContainedTys && "Index out of range!");
333 return ContainedTys[i];
334 }

--- 153 unchanged lines hidden ---
335 /// getContainedType - This method is used to implement the type iterator
336 /// (defined a the end of the file). For derived types, this returns the
337 /// types 'contained' in the derived type.
338 ///
339 Type *getContainedType(unsigned i) const {
340 assert(i < NumContainedTys && "Index out of range!");
341 return ContainedTys[i];
342 }

--- 153 unchanged lines hidden ---