diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 19:42:35 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 19:42:35 +0000 |
commit | e92c1bfa4b8d14215ae92a9fc911d92eb73f9a84 (patch) | |
tree | 171ada4967bb4f76da2d6a8b10433e8fee87fce3 /llvm/lib/MC/ELFObjectWriter.cpp | |
parent | fcfd5ae82c93f9ff350fac4e7fb07d774139e1a5 (diff) | |
download | bcm5719-llvm-e92c1bfa4b8d14215ae92a9fc911d92eb73f9a84.tar.gz bcm5719-llvm-e92c1bfa4b8d14215ae92a9fc911d92eb73f9a84.zip |
Remove unused argument. NFC.
llvm-svn: 237940
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index 8afd00fb7e3..f1ba758dad5 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/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); } } |