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

Chris Lattner lattner at cs.uiuc.edu
Thu Jan 8 23:47:01 PST 2004


Changes in directory llvm/include/llvm:

DerivedTypes.h updated: 1.48 -> 1.49

---
Log message:

Remove an obsolete method, including its _long_ out of date comment.
This is an incremental step towards fixing PR82


---
Diffs of the changes:  (+0 -16)

Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.48 llvm/include/llvm/DerivedTypes.h:1.49
--- llvm/include/llvm/DerivedTypes.h:1.48	Tue Nov 25 15:20:19 2003
+++ llvm/include/llvm/DerivedTypes.h	Thu Jan  8 23:45:58 2004
@@ -198,12 +198,6 @@
   virtual const Type *getTypeAtIndex(const Value *V) const = 0;
   virtual bool indexValid(const Value *V) const = 0;
 
-  // getIndexType - Return the type required of indices for this composite.
-  // For structures, this is ubyte, for arrays, this is uint
-  //
-  virtual const Type *getIndexType() const = 0;
-
-
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const CompositeType *T) { return true; }
   static inline bool classof(const Type *T) {
@@ -258,11 +252,6 @@
   virtual const Type *getTypeAtIndex(const Value *V) const ;
   virtual bool indexValid(const Value *V) const;
 
-  // getIndexType - Return the type required of indices for this composite.
-  // For structures, this is ubyte, for arrays, this is uint
-  //
-  virtual const Type *getIndexType() const { return Type::UByteTy; }
-
   // Implement the AbstractTypeUser interface.
   virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);
   virtual void typeBecameConcrete(const DerivedType *AbsTy);
@@ -311,11 +300,6 @@
   virtual bool indexValid(const Value *V) const {
     return V->getType()->isInteger();
   }
-
-  // getIndexType() - Return the type required of indices for this composite.
-  // For structures, this is ubyte, for arrays, this is uint
-  //
-  virtual const Type *getIndexType() const { return Type::LongTy; }
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const SequentialType *T) { return true; }





More information about the llvm-commits mailing list