From 51662c7beb0cece0f7b5e5d3a3a4ce22a57a6298 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 8 Jul 2004 22:31:09 +0000 Subject: The uid mapping is no more git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14708 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Type.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'lib/VMCore') diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b90f47e..fd2a1cc 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -34,9 +34,6 @@ AbstractTypeUser::~AbstractTypeUser() {} // Type Class Implementation //===----------------------------------------------------------------------===// -static unsigned CurUID = 0; -static std::vector UIDMappings; - // Concrete/Abstract TypeDescriptions - We lazily calculate type descriptions // for types as they are needed. Because resolution of types must invalidate // all of the abstract type descriptions, we keep them in a seperate map to make @@ -50,8 +47,6 @@ Type::Type( const std::string& name, TypeID id ) ConcreteTypeDescriptions[this] = name; ID = id; Abstract = false; - UID = CurUID++; // Assign types UID's as they are created - UIDMappings.push_back(this); } void Type::setName(const std::string &Name, SymbolTable *ST) { @@ -59,12 +54,6 @@ void Type::setName(const std::string &Name, SymbolTable *ST) { if (!Name.empty()) ST->insert(Name, this); } -const Type *Type::getUniqueIDType(unsigned UID) { - assert(UID < UIDMappings.size() && - "Type::getPrimitiveType: UID out of range!"); - return UIDMappings[UID]; -} - const Type *Type::getPrimitiveType(TypeID IDNumber) { switch (IDNumber) { case VoidTyID : return VoidTy; @@ -209,7 +198,7 @@ static std::string getTypeDescription(const Type *Ty, AbstractTypeDescriptions.lower_bound(Ty); if (I != AbstractTypeDescriptions.end() && I->first == Ty) return I->second; - std::string Desc = "opaque"+utostr(Ty->getUniqueID()); + std::string Desc = "opaque"; AbstractTypeDescriptions.insert(std::make_pair(Ty, Desc)); return Desc; } -- cgit v1.1