mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Global label not handled correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdc571b7d5
commit
0374248e86
@ -334,9 +334,17 @@ void AsmPrinter::EmitXXStructorList(Constant *List) {
|
|||||||
/// generate the appropriate value.
|
/// generate the appropriate value.
|
||||||
const std::string AsmPrinter::getGlobalLinkName(const GlobalVariable *GV) const{
|
const std::string AsmPrinter::getGlobalLinkName(const GlobalVariable *GV) const{
|
||||||
std::string LinkName;
|
std::string LinkName;
|
||||||
// Default action is to use a global symbol.
|
|
||||||
LinkName = TAI->getGlobalPrefix();
|
if (isa<Function>(GV)) {
|
||||||
LinkName += GV->getName();
|
LinkName += TAI->getFunctionAddrPrefix();
|
||||||
|
LinkName += Mang->getValueName(GV);
|
||||||
|
LinkName += TAI->getFunctionAddrSuffix();
|
||||||
|
} else {
|
||||||
|
LinkName += TAI->getGlobalVarAddrPrefix();
|
||||||
|
LinkName += Mang->getValueName(GV);
|
||||||
|
LinkName += TAI->getGlobalVarAddrSuffix();
|
||||||
|
}
|
||||||
|
|
||||||
return LinkName;
|
return LinkName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user