diff options
author | Devang Patel <dpatel@apple.com> | 2009-11-03 18:30:27 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-11-03 18:30:27 +0000 |
commit | ffa7c073529ea3cc82c31bcddda82a23c6a13dd7 (patch) | |
tree | 419563cbbd48683fad67d07b8c5057cc9345f24c /llvm/lib | |
parent | eec7d75a4edb8b58a5239d27cb86edd7ce08471b (diff) | |
download | bcm5719-llvm-ffa7c073529ea3cc82c31bcddda82a23c6a13dd7.tar.gz bcm5719-llvm-ffa7c073529ea3cc82c31bcddda82a23c6a13dd7.zip |
Ignore unnamed variables.
llvm-svn: 85909
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index fbb5acec0dc..23752c4ba84 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1249,6 +1249,9 @@ CompileUnit &DwarfDebug::FindCompileUnit(DICompileUnit Unit) const { DIE *DwarfDebug::CreateDbgScopeVariable(DbgVariable *DV, 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. @@ -1267,7 +1270,6 @@ DIE *DwarfDebug::CreateDbgScopeVariable(DbgVariable *DV, CompileUnit *Unit) { // Define variable debug information entry. DIE *VariableDie = new DIE(Tag); - const char *Name = VD.getName(); AddString(VariableDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); // Add source line info if available. |