summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-08 22:31:09 +0000
committerChris Lattner <sabre@nondot.org>2004-07-08 22:31:09 +0000
commit753026dae000705c3fcb96018d60718a431e794f (patch)
treedf2959499aa3993aa8f1bf2c8ccc01a69b7339cc
parent0bba5dbe951e0bcf6be98e2a0c5945d9f99679b5 (diff)
downloadbcm5719-llvm-753026dae000705c3fcb96018d60718a431e794f.tar.gz
bcm5719-llvm-753026dae000705c3fcb96018d60718a431e794f.zip
The uid mapping is no more
llvm-svn: 14708
-rw-r--r--llvm/lib/VMCore/Type.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp
index b90f47ec4d0..fd2a1cccc63 100644
--- a/llvm/lib/VMCore/Type.cpp
+++ b/llvm/lib/VMCore/Type.cpp
@@ -34,9 +34,6 @@ AbstractTypeUser::~AbstractTypeUser() {}
// Type Class Implementation
//===----------------------------------------------------------------------===//
-static unsigned CurUID = 0;
-static std::vector<const Type *> 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;
}
OpenPOWER on IntegriCloud