Changes in directory llvm/lib/Bytecode/Writer:
SlotCalculator.cpp updated: 1.85 -> 1.86 SlotCalculator.h updated: 1.30 -> 1.31 --- Log message: remove dead 'dontIgnore' flag for insertType --- Diffs of the changes: (+12 -12) SlotCalculator.cpp | 22 +++++++++++----------- SlotCalculator.h | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) Index: llvm/lib/Bytecode/Writer/SlotCalculator.cpp diff -u llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.85 llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.86 --- llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.85 Fri Feb 9 22:15:40 2007 +++ llvm/lib/Bytecode/Writer/SlotCalculator.cpp Fri Feb 9 22:17:41 2007 @@ -51,17 +51,17 @@ // 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 @@ 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 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: llvm/lib/Bytecode/Writer/SlotCalculator.h diff -u llvm/lib/Bytecode/Writer/SlotCalculator.h:1.30 llvm/lib/Bytecode/Writer/SlotCalculator.h:1.31 --- llvm/lib/Bytecode/Writer/SlotCalculator.h:1.30 Fri Feb 9 22:15:40 2007 +++ llvm/lib/Bytecode/Writer/SlotCalculator.h Fri Feb 9 22:17:41 2007 @@ -123,7 +123,7 @@ // 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); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits