From fcd547ce032d2bb0a092c8cef087d0b6dcc3b51f Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 24 Mar 2014 20:28:10 +0000 Subject: [PATCH] Remove unused parameter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204663 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 +- lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 8 +++----- lib/CodeGen/AsmPrinter/DwarfUnit.h | 6 ++---- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 3bbf5525929..2b5d3d4566c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1943,7 +1943,7 @@ void DwarfFile::emitUnits(DwarfDebug *DD, const MCSection *ASection, Asm->OutStreamer.AddComment("Length of Unit"); Asm->EmitInt32(TheU->getHeaderSize() + Die->getSize()); - TheU->emitHeader(ASection, ASectionSym); + TheU->emitHeader(ASectionSym); DD->emitDIE(Die); Asm->OutStreamer.EmitLabel(TheU->getLabelEnd()); diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index c1ece004779..4a2b62421dd 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -2030,8 +2030,7 @@ DIE *DwarfUnit::getOrCreateStaticMemberDIE(DIDerivedType DT) { return StaticMemberDIE; } -void DwarfUnit::emitHeader(const MCSection *ASection, - const MCSymbol *ASectionSym) const { +void DwarfUnit::emitHeader(const MCSymbol *ASectionSym) const { Asm->OutStreamer.AddComment("DWARF version number"); Asm->EmitInt16(DD->getDwarfVersion()); Asm->OutStreamer.AddComment("Offset Into Abbrev. Section"); @@ -2098,9 +2097,8 @@ void DwarfCompileUnit::applyStmtList(DIE &D) { UnitDie->getValues()[stmtListIndex]); } -void DwarfTypeUnit::emitHeader(const MCSection *ASection, - const MCSymbol *ASectionSym) const { - DwarfUnit::emitHeader(ASection, ASectionSym); +void DwarfTypeUnit::emitHeader(const MCSymbol *ASectionSym) const { + DwarfUnit::emitHeader(ASectionSym); Asm->OutStreamer.AddComment("Type Signature"); Asm->OutStreamer.EmitIntValue(TypeSignature, sizeof(TypeSignature)); Asm->OutStreamer.AddComment("Type DIE Offset"); diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.h b/lib/CodeGen/AsmPrinter/DwarfUnit.h index a9e52e674a4..ef713f7cf01 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -479,8 +479,7 @@ public: } /// Emit the header for this unit, not including the initial length field. - virtual void emitHeader(const MCSection *ASection, - const MCSymbol *ASectionSym) const; + virtual void emitHeader(const MCSymbol *ASectionSym) const; virtual DwarfCompileUnit &getCU() = 0; @@ -610,8 +609,7 @@ public: void setType(const DIE *Ty) { this->Ty = Ty; } /// Emit the header for this unit, not including the initial length field. - void emitHeader(const MCSection *ASection, const MCSymbol *ASectionSym) const - override; + void emitHeader(const MCSymbol *ASectionSym) const override; unsigned getHeaderSize() const override { return DwarfUnit::getHeaderSize() + sizeof(uint64_t) + // Type Signature sizeof(uint32_t); // Type DIE Offset -- 2.34.1