OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c78c0c9
)
Ignore nameless variables.
author
Devang Patel
<dpatel@apple.com>
Fri, 13 Nov 2009 02:25:26 +0000
(
02:25
+0000)
committer
Devang Patel
<dpatel@apple.com>
Fri, 13 Nov 2009 02:25:26 +0000
(
02:25
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87069
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index
89daec8
..
c81ab73
100644
(file)
--- 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);