diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-01-05 07:43:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-01-05 07:43:02 +0000 |
commit | 800a916f992a76a6824df962d4d7e40705597556 (patch) | |
tree | 12d1cd1eb9746c16ff713078ed0748fdef5df00a /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 92a70b1e6567c5a73c384c774a056dbe167b3b7c (diff) | |
download | bcm5719-llvm-800a916f992a76a6824df962d4d7e40705597556.tar.gz bcm5719-llvm-800a916f992a76a6824df962d4d7e40705597556.zip |
Emit DW_TAG_formal_parameter for unnamed parameters.
This change essentially reverts r87069 which came without a test case. It
causes no regressions in the GDB 7.5 test suite & fixes 25 xfails (commit
to the test suite to follow). If anyone can present a test case that
demonstrates why this check is necessary I'd be happy to account for it in one
way or another.
llvm-svn: 171609
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 3b9ce658f8c..5dbf74d3f76 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1378,8 +1378,6 @@ void CompileUnit::constructContainingTypeDIEs() { /// constructVariableDIE - Construct a DIE for the given DbgVariable. DIE *CompileUnit::constructVariableDIE(DbgVariable *DV, bool isScopeAbstract) { StringRef Name = DV->getName(); - if (Name.empty()) - return NULL; // Translate tag to proper Dwarf tag. unsigned Tag = DV->getTag(); |