diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-11 21:08:00 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-11 21:08:00 +0000 |
commit | d96652237741a9c010712772f1990d5b46d28f63 (patch) | |
tree | 9c0ea2abb4ed208b8f2a7ad58489b86fcf6e7a6e /llvm/lib/MC/ELFObjectWriter.cpp | |
parent | 9730116bd6792a91eb965c9fcab19b8f5095b29e (diff) | |
download | bcm5719-llvm-d96652237741a9c010712772f1990d5b46d28f63.tar.gz bcm5719-llvm-d96652237741a9c010712772f1990d5b46d28f63.zip |
Remove unused argument. NFC.
llvm-svn: 228873
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index aecdb654645..4672c4d5cef 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/lib/MC/ELFObjectWriter.cpp @@ -251,8 +251,7 @@ class ELFObjectWriter : public MCObjectWriter { SectionIndexMapTy &SectionIndexMap, const RelMapTy &RelMap); - void CreateRelocationSections(MCAssembler &Asm, MCAsmLayout &Layout, - RelMapTy &RelMap); + void CreateRelocationSections(MCAssembler &Asm, RelMapTy &RelMap); void CompressDebugSections(MCAssembler &Asm, MCAsmLayout &Layout); @@ -1118,7 +1117,6 @@ ELFObjectWriter::computeSymbolTable(MCAssembler &Asm, const MCAsmLayout &Layout, } void ELFObjectWriter::CreateRelocationSections(MCAssembler &Asm, - MCAsmLayout &Layout, RelMapTy &RelMap) { for (MCAssembler::const_iterator it = Asm.begin(), ie = Asm.end(); it != ie; ++it) { @@ -1721,7 +1719,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm, CompressDebugSections(Asm, const_cast<MCAsmLayout &>(Layout)); DenseMap<const MCSectionELF*, const MCSectionELF*> RelMap; - CreateRelocationSections(Asm, const_cast<MCAsmLayout&>(Layout), RelMap); + CreateRelocationSections(Asm, RelMap); const unsigned NumUserAndRelocSections = Asm.size(); CreateIndexedSections(Asm, const_cast<MCAsmLayout&>(Layout), GroupMap, |