mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 19:36:59 +00:00
Work around apparent Apple compiler bug which was making all mangled
names start with l0_. llvm-svn: 14651
This commit is contained in:
parent
ef2c80bf39
commit
b189dba59c
@ -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++) + "_"
|
||||
|
Loading…
x
Reference in New Issue
Block a user