Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.164 -> 1.165
---
Log message:

Remove dead methods in the ValTypes.


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

 Type.cpp |   31 -------------------------------
 1 files changed, 31 deletions(-)


Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.164 llvm/lib/VMCore/Type.cpp:1.165
--- llvm/lib/VMCore/Type.cpp:1.164      Fri Jan 19 15:13:56 2007
+++ llvm/lib/VMCore/Type.cpp    Fri Jan 19 15:25:12 2007
@@ -1013,13 +1013,6 @@
     return FT->getNumParams()*64+FT->getNumAttrs()*2+FT->isVarArg();
   }
 
-  // Subclass should override this... to update self as usual
-  void doRefinement(const DerivedType *OldType, const Type *NewType) {
-    if (RetTy == OldType) RetTy = NewType;
-    for (unsigned i = 0, e = ArgTypes.size(); i != e; ++i)
-      if (ArgTypes[i] == OldType) ArgTypes[i] = NewType;
-  }
-
   inline bool operator<(const FunctionValType &MTV) const {
     if (RetTy < MTV.RetTy) return true;
     if (RetTy > MTV.RetTy) return false;
@@ -1114,12 +1107,6 @@
     return (unsigned)AT->getNumElements();
   }
 
-  // Subclass should override this... to update self as usual
-  void doRefinement(const DerivedType *OldType, const Type *NewType) {
-    assert(ValTy == OldType);
-    ValTy = NewType;
-  }
-
   inline bool operator<(const ArrayValType &MTV) const {
     if (Size < MTV.Size) return true;
     return Size == MTV.Size && ValTy < MTV.ValTy;
@@ -1164,12 +1151,6 @@
     return PT->getNumElements();
   }
 
-  // Subclass should override this... to update self as usual
-  void doRefinement(const DerivedType *OldType, const Type *NewType) {
-    assert(ValTy == OldType);
-    ValTy = NewType;
-  }
-
   inline bool operator<(const PackedValType &MTV) const {
     if (Size < MTV.Size) return true;
     return Size == MTV.Size && ValTy < MTV.ValTy;
@@ -1223,12 +1204,6 @@
     return ST->getNumElements();
   }
 
-  // Subclass should override this... to update self as usual
-  void doRefinement(const DerivedType *OldType, const Type *NewType) {
-    for (unsigned i = 0; i < ElTypes.size(); ++i)
-      if (ElTypes[i] == OldType) ElTypes[i] = NewType;
-  }
-
   inline bool operator<(const StructValType &STV) const {
     if (ElTypes < STV.ElTypes) return true;
     else if (ElTypes > STV.ElTypes) return false;
@@ -1276,12 +1251,6 @@
     return getSubElementHash(PT);
   }
 
-  // Subclass should override this... to update self as usual
-  void doRefinement(const DerivedType *OldType, const Type *NewType) {
-    assert(ValTy == OldType);
-    ValTy = NewType;
-  }
-
   bool operator<(const PointerValType &MTV) const {
     return ValTy < MTV.ValTy;
   }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to