Remove unused argument. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-02-11 21:08:00 +00:00
parent 23af697ae6
commit f97b99e41c

View File

@ -251,8 +251,7 @@ class ELFObjectWriter : public MCObjectWriter {
SectionIndexMapTy &SectionIndexMap, SectionIndexMapTy &SectionIndexMap,
const RelMapTy &RelMap); const RelMapTy &RelMap);
void CreateRelocationSections(MCAssembler &Asm, MCAsmLayout &Layout, void CreateRelocationSections(MCAssembler &Asm, RelMapTy &RelMap);
RelMapTy &RelMap);
void CompressDebugSections(MCAssembler &Asm, MCAsmLayout &Layout); void CompressDebugSections(MCAssembler &Asm, MCAsmLayout &Layout);
@ -1118,7 +1117,6 @@ ELFObjectWriter::computeSymbolTable(MCAssembler &Asm, const MCAsmLayout &Layout,
} }
void ELFObjectWriter::CreateRelocationSections(MCAssembler &Asm, void ELFObjectWriter::CreateRelocationSections(MCAssembler &Asm,
MCAsmLayout &Layout,
RelMapTy &RelMap) { RelMapTy &RelMap) {
for (MCAssembler::const_iterator it = Asm.begin(), for (MCAssembler::const_iterator it = Asm.begin(),
ie = Asm.end(); it != ie; ++it) { ie = Asm.end(); it != ie; ++it) {
@ -1721,7 +1719,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm,
CompressDebugSections(Asm, const_cast<MCAsmLayout &>(Layout)); CompressDebugSections(Asm, const_cast<MCAsmLayout &>(Layout));
DenseMap<const MCSectionELF*, const MCSectionELF*> RelMap; DenseMap<const MCSectionELF*, const MCSectionELF*> RelMap;
CreateRelocationSections(Asm, const_cast<MCAsmLayout&>(Layout), RelMap); CreateRelocationSections(Asm, RelMap);
const unsigned NumUserAndRelocSections = Asm.size(); const unsigned NumUserAndRelocSections = Asm.size();
CreateIndexedSections(Asm, const_cast<MCAsmLayout&>(Layout), GroupMap, CreateIndexedSections(Asm, const_cast<MCAsmLayout&>(Layout), GroupMap,