mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Global name regression.
llvm-svn: 30982
This commit is contained in:
parent
25fbeb5ec2
commit
5fe261bc52
@ -1632,11 +1632,15 @@ DIE *DwarfWriter::NewGlobalVariable(GlobalVariableDesc *GVD) {
|
|||||||
|
|
||||||
// Add source line info if available.
|
// Add source line info if available.
|
||||||
AddSourceLine(VariableDie, UnitDesc, GVD->getLine());
|
AddSourceLine(VariableDie, UnitDesc, GVD->getLine());
|
||||||
|
|
||||||
|
// Work up linkage name.
|
||||||
|
std::string LinkageName(TAI->getGlobalPrefix());
|
||||||
|
LinkageName += GV->getName();
|
||||||
|
|
||||||
// Add address.
|
// Add address.
|
||||||
DIEBlock *Block = new DIEBlock();
|
DIEBlock *Block = new DIEBlock();
|
||||||
Block->AddUInt(DW_FORM_data1, DW_OP_addr);
|
Block->AddUInt(DW_FORM_data1, DW_OP_addr);
|
||||||
Block->AddObjectLabel(DW_FORM_udata, MangledName);
|
Block->AddObjectLabel(DW_FORM_udata, LinkageName);
|
||||||
Block->ComputeSize(*this);
|
Block->ComputeSize(*this);
|
||||||
VariableDie->AddBlock(DW_AT_location, 0, Block);
|
VariableDie->AddBlock(DW_AT_location, 0, Block);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user