[llvm] r228873 - Remove unused argument. NFC.

Rafael Espindola rafael.espindola at gmail.com
Wed Feb 11 13:08:00 PST 2015


Author: rafael
Date: Wed Feb 11 15:08:00 2015
New Revision: 228873

URL: http://llvm.org/viewvc/llvm-project?rev=228873&view=rev
Log:
Remove unused argument. NFC.

Modified:
    llvm/trunk/lib/MC/ELFObjectWriter.cpp

Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=228873&r1=228872&r2=228873&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Wed Feb 11 15:08:00 2015
@@ -251,8 +251,7 @@ class ELFObjectWriter : public MCObjectW
                          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(MCAs
 }
 
 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(MCAsse
   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,





More information about the llvm-commits mailing list