diff options
author | Devang Patel <dpatel@apple.com> | 2009-11-13 02:25:26 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-11-13 02:25:26 +0000 |
commit | 3fb6bd690a5919ec78777508e184e3538b6d51b0 (patch) | |
tree | 5394bd036ae1be9406a89b1e14867e66b8916203 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | c78c0c99a0fe1703ae72fc51e440aaa8e4e19e91 (diff) |
Ignore nameless variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 89daec85ec..c81ab73e81 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1511,6 +1511,9 @@ DIE *DwarfDebug::ConstructVariableDIE(DbgVariable *DV, DbgScope *Scope, CompileUnit *Unit) { // Get the descriptor. 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 // now. @@ -1547,7 +1550,6 @@ DIE *DwarfDebug::ConstructVariableDIE(DbgVariable *DV, dwarf::DW_FORM_ref4, AbsDIE); } else { - const char *Name = VD.getName(); AddString(VariableDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); AddSourceLine(VariableDie, &VD); |