Work around apparent Apple compiler bug which was making all mangled

names start with l0_.

llvm-svn: 14651
This commit is contained in:
Brian Gaeke 2004-07-06 20:29:05 +00:00
parent ef2c80bf39
commit b189dba59c

View File

@ -71,8 +71,8 @@ std::string Mangler::getValueName(const Value *V) {
} else {
// Non-global, or global with internal linkage / colliding name
// -> mangle.
name = "l" + utostr(V->getType()->getUniqueID()) + "_" +
makeNameProper(V->getName());
unsigned TypeUniqueID = V->getType()->getUniqueID();
name = "l" + utostr(TypeUniqueID) + "_" + makeNameProper(V->getName());
}
} else {
name = "ltmp_" + utostr(Count++) + "_"