From 08696653caa560a57642abad0faf0b5c5d8442dc Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Tue, 10 Apr 2012 19:27:31 -0700 Subject: [PATCH] Don't include struct member types in mangled string. Not only was this quite verbose, it was unnecessary since we do type equality by name. This also needed to be fixed before we could handle structs declared like "struct Foo;", when we then e.g. have other structs with Foo * members. --- type.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/type.cpp b/type.cpp index 31fd63a9..3795a3dc 100644 --- a/type.cpp +++ b/type.cpp @@ -1912,10 +1912,7 @@ StructType::Mangle() const { ret += "_c_"; ret += variability.MangleString(); - ret += name + std::string("]<"); - for (unsigned int i = 0; i < elementTypes.size(); ++i) - ret += GetElementType(i)->Mangle(); - ret += ">"; + ret += name + std::string("]"); return ret; }