aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-10 04:17:41 +0000
committerChris Lattner <sabre@nondot.org>2007-02-10 04:17:41 +0000
commit330fce71b2bdaf85fba6972228ee310ebd9141a6 (patch)
tree524432b9875284c10912130c952e918b3ea60c10 /lib/Bytecode/Writer
parentcb43fdc40cc8d40ff8357645f952e06ea8b7276d (diff)
downloadexternal_llvm-330fce71b2bdaf85fba6972228ee310ebd9141a6.zip
external_llvm-330fce71b2bdaf85fba6972228ee310ebd9141a6.tar.gz
external_llvm-330fce71b2bdaf85fba6972228ee310ebd9141a6.tar.bz2
remove dead 'dontIgnore' flag for insertType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer')
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.cpp22
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.h2
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp
index 45f9694..fe553e5 100644
--- a/lib/Bytecode/Writer/SlotCalculator.cpp
+++ b/lib/Bytecode/Writer/SlotCalculator.cpp
@@ -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;
diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h
index c108ff9..7567318 100644
--- a/lib/Bytecode/Writer/SlotCalculator.h
+++ b/lib/Bytecode/Writer/SlotCalculator.h
@@ -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);