[llvm-commits] CVS: llvm/include/llvm/Type.h

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 2 16:41:01 PDT 2003


Changes in directory llvm/include/llvm:

Type.h updated: 1.26 -> 1.27

---
Log message:

Remove the "recursive bit", not only is it unused by anyone, it was also
not correctly calculated, and calculating it wrong for fun seems rather
pointless.


---
Diffs of the changes:

Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.26 llvm/include/llvm/Type.h:1.27
--- llvm/include/llvm/Type.h:1.26	Tue Sep  2 11:28:03 2003
+++ llvm/include/llvm/Type.h	Tue Sep  2 16:40:33 2003
@@ -73,7 +73,6 @@
   PrimitiveID ID;        // The current base type of this type...
   unsigned    UID;       // The unique ID number for this class
   bool        Abstract;  // True if type contains an OpaqueType
-  bool        Recursive; // True if the type is recursive
 
 protected:
   /// ctor is protected, so only subclasses can create Type objects...
@@ -89,10 +88,6 @@
   ///
   inline void setAbstract(bool Val) { Abstract = Val; }
 
-  /// Types can become recursive later, if they are refined.
-  ///
-  inline void setRecursive(bool Val) { Recursive = Val; }
-
 public:
   virtual void print(std::ostream &O) const;
 
@@ -147,10 +142,6 @@
   /// type that includes an opaque type somewhere in it.  
   ///
   inline bool isAbstract() const { return Abstract; }
-
-  /// isRecursive - True if the type graph contains a cycle.
-  ///
-  inline bool isRecursive() const { return Recursive; }
 
   /// isLosslesslyConvertibleTo - Return true if this type can be converted to
   /// 'Ty' without any reinterpretation of bits.  For example, uint to int.





More information about the llvm-commits mailing list