From a127bd0585b1e8faa3efbba164c9b7f2fe68cc6f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 21 May 2015 19:42:35 +0000 Subject: [PATCH] Remove unused argument. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237940 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/ELFObjectWriter.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 8afd00fb7e3..f1ba758dad5 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -253,8 +253,7 @@ class ELFObjectWriter : public MCObjectWriter { bool isWeak(const MCSymbol &Sym) const override; void WriteObject(MCAssembler &Asm, const MCAsmLayout &Layout) override; - void writeSection(MCAssembler &Asm, - const SectionIndexMapTy &SectionIndexMap, + void writeSection(const SectionIndexMapTy &SectionIndexMap, uint32_t GroupSymbolIndex, uint64_t Offset, uint64_t Size, const MCSectionELF &Section); }; @@ -1250,11 +1249,9 @@ const MCSectionELF *ELFObjectWriter::createStringTable(MCContext &Ctx) { return StrtabSection; } -void ELFObjectWriter::writeSection(MCAssembler &Asm, - const SectionIndexMapTy &SectionIndexMap, - uint32_t GroupSymbolIndex, - uint64_t Offset, uint64_t Size, - const MCSectionELF &Section) { +void ELFObjectWriter::writeSection(const SectionIndexMapTy &SectionIndexMap, + uint32_t GroupSymbolIndex, uint64_t Offset, + uint64_t Size, const MCSectionELF &Section) { uint64_t sh_link = 0; uint64_t sh_info = 0; @@ -1326,7 +1323,7 @@ void ELFObjectWriter::writeSectionHeader( uint64_t Size = Type == ELF::SHT_NOBITS ? Layout.getSectionAddressSize(&SD) : Offsets.second - Offsets.first; - writeSection(Asm, SectionIndexMap, GroupSymbolIndex, Offsets.first, Size, + writeSection(SectionIndexMap, GroupSymbolIndex, Offsets.first, Size, *Section); } } -- 2.34.1