mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Work around apparent Apple compiler bug which was making all mangled
names start with l0_. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4ddea69ba
commit
a4c7c414ef
@ -71,8 +71,8 @@ std::string Mangler::getValueName(const Value *V) {
|
|||||||
} else {
|
} else {
|
||||||
// Non-global, or global with internal linkage / colliding name
|
// Non-global, or global with internal linkage / colliding name
|
||||||
// -> mangle.
|
// -> mangle.
|
||||||
name = "l" + utostr(V->getType()->getUniqueID()) + "_" +
|
unsigned TypeUniqueID = V->getType()->getUniqueID();
|
||||||
makeNameProper(V->getName());
|
name = "l" + utostr(TypeUniqueID) + "_" + makeNameProper(V->getName());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
name = "ltmp_" + utostr(Count++) + "_"
|
name = "ltmp_" + utostr(Count++) + "_"
|
||||||
|
@ -71,8 +71,8 @@ std::string Mangler::getValueName(const Value *V) {
|
|||||||
} else {
|
} else {
|
||||||
// Non-global, or global with internal linkage / colliding name
|
// Non-global, or global with internal linkage / colliding name
|
||||||
// -> mangle.
|
// -> mangle.
|
||||||
name = "l" + utostr(V->getType()->getUniqueID()) + "_" +
|
unsigned TypeUniqueID = V->getType()->getUniqueID();
|
||||||
makeNameProper(V->getName());
|
name = "l" + utostr(TypeUniqueID) + "_" + makeNameProper(V->getName());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
name = "ltmp_" + utostr(Count++) + "_"
|
name = "ltmp_" + utostr(Count++) + "_"
|
||||||
|
Loading…
Reference in New Issue
Block a user