remove dead 'dontIgnore' flag for insertType
authorChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 04:17:41 +0000 (04:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 04:17:41 +0000 (04:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34114 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/SlotCalculator.cpp
lib/Bytecode/Writer/SlotCalculator.h

index 45f9694d2d6b0e7279327267c25755f6ffd99233..fe553e5bd12e55cd66a33dbcad17f8104fdaad22 100644 (file)
@@ -51,17 +51,17 @@ void SlotCalculator::insertPrimitives() {
   // Reader.h which uses them directly to extract values of these types.
   SC_DEBUG("Inserting primitive types:\n");
                                     // See WellKnownTypeSlots in Reader.h
-  insertType(Type::VoidTy,   true); // 0: VoidTySlot
-  insertType(Type::FloatTy,  true); // 1: FloatTySlot
-  insertType(Type::DoubleTy, true); // 2: DoubleTySlot
-  insertType(Type::LabelTy,  true); // 3: LabelTySlot
+  insertType(Type::VoidTy  ); // 0: VoidTySlot
+  insertType(Type::FloatTy ); // 1: FloatTySlot
+  insertType(Type::DoubleTy); // 2: DoubleTySlot
+  insertType(Type::LabelTy ); // 3: LabelTySlot
   assert(TypeMap.size() == Type::FirstDerivedTyID &&"Invalid primitive insert");
   // Above here *must* correspond 1:1 with the primitive types.
-  insertType(Type::Int1Ty,   true); // 4: BoolTySlot
-  insertType(Type::Int8Ty,   true); // 5: Int8TySlot
-  insertType(Type::Int16Ty,  true); // 6: Int16TySlot
-  insertType(Type::Int32Ty,  true); // 7: Int32TySlot
-  insertType(Type::Int64Ty,  true); // 8: Int64TySlot
+  insertType(Type::Int1Ty  ); // 4: BoolTySlot
+  insertType(Type::Int8Ty  ); // 5: Int8TySlot
+  insertType(Type::Int16Ty ); // 6: Int16TySlot
+  insertType(Type::Int32Ty ); // 7: Int32TySlot
+  insertType(Type::Int64Ty ); // 8: Int64TySlot
 }
 
 SlotCalculator::SlotCalculator(const Module *M ) {
@@ -394,7 +394,7 @@ int SlotCalculator::getOrCreateTypeSlot(const Type* T) {
   return insertType(T);
 }
 
-int SlotCalculator::insertType(const Type *Ty, bool dontIgnore) {
+int SlotCalculator::insertType(const Type *Ty) {
   assert(Ty && "Can't insert a null type!");
   assert(getTypeSlot(Ty) == -1 && "Type is already in the table!");
 
@@ -440,7 +440,7 @@ int SlotCalculator::doInsertValue(const Value *D) {
     int ValSlot = getTypeSlot(Typ);
     if (ValSlot == -1) {                // Have we already entered this type?
       // Nope, this is the first we have seen the type, process it.
-      ValSlot = insertType(Typ, true);
+      ValSlot = insertType(Typ);
       assert(ValSlot != -1 && "ProcessType returned -1 for a type?");
     }
     Ty = (unsigned)ValSlot;
index c108ff9d7b776c24169840c513a74b161a696879..75673182cd239b86c07db22fcdb3ad9c9e791b46 100644 (file)
@@ -123,7 +123,7 @@ private:
   // because of the IgnoreNamedNodes flag.
   //
   int insertValue(const Value *D, bool dontIgnore = false);
-  int insertType(const Type *T, bool dontIgnore = false);
+  int insertType(const Type *T);
 
   // doInsertValue - Small helper function to be called only be insertVal.
   int doInsertValue(const Value *V);