[llvm-commits] [llvm] r120621 - in /llvm/trunk: include/llvm/MC/MCAssembler.h lib/MC/MCAssembler.cpp

Rafael Espindola rafael.espindola at gmail.com
Wed Dec 1 14:48:12 PST 2010


Author: rafael
Date: Wed Dec  1 16:48:11 2010
New Revision: 120621

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

Modified:
    llvm/trunk/include/llvm/MC/MCAssembler.h
    llvm/trunk/lib/MC/MCAssembler.cpp

Modified: llvm/trunk/include/llvm/MC/MCAssembler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAssembler.h?rev=120621&r1=120620&r2=120621&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCAssembler.h (original)
+++ llvm/trunk/include/llvm/MC/MCAssembler.h Wed Dec  1 16:48:11 2010
@@ -717,7 +717,7 @@
 
   /// Compute the effective fragment size assuming it is layed out at the given
   /// \arg SectionAddress and \arg FragmentOffset.
-  uint64_t ComputeFragmentSize(MCAsmLayout &Layout, const MCFragment &F,
+  uint64_t ComputeFragmentSize(const MCFragment &F,
                                uint64_t SectionAddress,
                                uint64_t FragmentOffset) const;
 

Modified: llvm/trunk/lib/MC/MCAssembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAssembler.cpp?rev=120621&r1=120620&r2=120621&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAssembler.cpp (original)
+++ llvm/trunk/lib/MC/MCAssembler.cpp Wed Dec  1 16:48:11 2010
@@ -336,8 +336,7 @@
   return IsResolved;
 }
 
-uint64_t MCAssembler::ComputeFragmentSize(MCAsmLayout &Layout,
-                                          const MCFragment &F,
+uint64_t MCAssembler::ComputeFragmentSize(const MCFragment &F,
                                           uint64_t SectionAddress,
                                           uint64_t FragmentOffset) const {
   switch (F.getKind()) {
@@ -410,7 +409,7 @@
 
   // Compute fragment offset and size.
   F->Offset = Address - StartAddress;
-  F->EffectiveSize = getAssembler().ComputeFragmentSize(*this, *F, StartAddress,
+  F->EffectiveSize = getAssembler().ComputeFragmentSize(*F, StartAddress,
                                                         F->Offset);
   LastValidFragment = F;
 





More information about the llvm-commits mailing list