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.
This commit is contained in:
Matt Pharr
2012-04-10 19:27:31 -07:00
parent 8a1a214ca9
commit 08696653ca

View File

@@ -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;
}