mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-01 17:28:26 +00:00
Ignore nameless variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c78c0c99a0
commit
3fb6bd690a
@ -1511,6 +1511,9 @@ DIE *DwarfDebug::ConstructVariableDIE(DbgVariable *DV,
|
|||||||
DbgScope *Scope, CompileUnit *Unit) {
|
DbgScope *Scope, CompileUnit *Unit) {
|
||||||
// Get the descriptor.
|
// Get the descriptor.
|
||||||
const DIVariable &VD = DV->getVariable();
|
const DIVariable &VD = DV->getVariable();
|
||||||
|
const char *Name = VD.getName();
|
||||||
|
if (!Name)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
// Translate tag to proper Dwarf tag. The result variable is dropped for
|
// Translate tag to proper Dwarf tag. The result variable is dropped for
|
||||||
// now.
|
// now.
|
||||||
@ -1547,7 +1550,6 @@ DIE *DwarfDebug::ConstructVariableDIE(DbgVariable *DV,
|
|||||||
dwarf::DW_FORM_ref4, AbsDIE);
|
dwarf::DW_FORM_ref4, AbsDIE);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const char *Name = VD.getName();
|
|
||||||
AddString(VariableDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
|
AddString(VariableDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
|
||||||
AddSourceLine(VariableDie, &VD);
|
AddSourceLine(VariableDie, &VD);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user