summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-03-06 19:25:07 +0000
committerChris Bieneman <beanz@apple.com>2017-03-06 19:25:07 +0000
commita175512b18478848bdbe203f2d25dc417860e3c5 (patch)
tree0c564745fc34f8fa885e1c98418071c0966e876d /llvm
parentb1d026f0fe09af37efb7a245a0183eb9714292ca (diff)
downloadbcm5719-llvm-a175512b18478848bdbe203f2d25dc417860e3c5.tar.gz
bcm5719-llvm-a175512b18478848bdbe203f2d25dc417860e3c5.zip
[DWARF] NFC. A few bits of minor code cleanup.
David Blaikie pointed out that the `setForceChildren` API is no longer needed and should be removed from the DWARF Generator APIs. Also the DWARFDebugInfoTest file had some copy pasted comments that are not relevant. I've removed them. llvm-svn: 297056
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp6
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp4
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h3
3 files changed, 0 insertions, 13 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
index b6111e71c1a..c13b610338f 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
@@ -1283,9 +1283,6 @@ TEST(DWARFDebugInfo, TestFindRecurse) {
StringRef AbsDieName("abs");
// Scope to allow us to re-use the same DIE names
{
- // Create a compile unit DIE that has an abbreviation that says it has
- // children, but doesn't have any actual attributes. This helps us test
- // a DIE that has only one child: a NULL DIE.
auto CUDie = CU.getUnitDIE();
auto FuncSpecDie = CUDie.addChild(DW_TAG_subprogram);
auto FuncDie = CUDie.addChild(DW_TAG_subprogram);
@@ -1495,9 +1492,6 @@ TEST(DWARFDebugInfo, TestFindAttrs) {
StringRef DieMangled("_Z3fooi");
// Scope to allow us to re-use the same DIE names
{
- // Create a compile unit DIE that has an abbreviation that says it has
- // children, but doesn't have any actual attributes. This helps us test
- // a DIE that has only one child: a NULL DIE.
auto CUDie = CU.getUnitDIE();
auto FuncSpecDie = CUDie.addChild(DW_TAG_subprogram);
auto FuncDie = CUDie.addChild(DW_TAG_subprogram);
diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
index 2c14786e584..ac63bbaf0a1 100644
--- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
@@ -108,10 +108,6 @@ dwarfgen::DIE dwarfgen::CompileUnit::getUnitDIE() {
return dwarfgen::DIE(this, &DU.getUnitDie());
}
-void dwarfgen::DIE::setForceChildren() {
- Die->setForceChildren(true);
-}
-
//===----------------------------------------------------------------------===//
/// dwarfgen::Generator implementation.
//===----------------------------------------------------------------------===//
diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
index 2978d1ca002..966725b4fa4 100644
--- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
+++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
@@ -129,9 +129,6 @@ public:
/// \returns the newly created DIE object that is now a child owned by this
/// object.
dwarfgen::DIE addChild(dwarf::Tag Tag);
-
- /// Force a DIE to say it has children even when it doesn't.
- void setForceChildren();
};
/// A DWARF compile unit used to generate DWARF compile/type units.
OpenPOWER on IntegriCloud