mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
Global name regression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
27e469ef13
commit
ba8a2ee548
@ -1632,11 +1632,15 @@ DIE *DwarfWriter::NewGlobalVariable(GlobalVariableDesc *GVD) {
|
||||
|
||||
// Add source line info if available.
|
||||
AddSourceLine(VariableDie, UnitDesc, GVD->getLine());
|
||||
|
||||
// Work up linkage name.
|
||||
std::string LinkageName(TAI->getGlobalPrefix());
|
||||
LinkageName += GV->getName();
|
||||
|
||||
// Add address.
|
||||
DIEBlock *Block = new DIEBlock();
|
||||
Block->AddUInt(DW_FORM_data1, DW_OP_addr);
|
||||
Block->AddObjectLabel(DW_FORM_udata, MangledName);
|
||||
Block->AddObjectLabel(DW_FORM_udata, LinkageName);
|
||||
Block->ComputeSize(*this);
|
||||
VariableDie->AddBlock(DW_AT_location, 0, Block);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user