From 6566e0a55e3d9403f77db81a79a5dadedb4e666e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 1 Dec 2010 22:48:11 +0000 Subject: [PATCH] Remove unused argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120621 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCAssembler.h | 2 +- lib/MC/MCAssembler.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 2460aa3b122..06ac92e5665 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -717,7 +717,7 @@ private: /// 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; diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 434683868cc..168b62073f7 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -336,8 +336,7 @@ bool MCAssembler::EvaluateFixup(const MCObjectWriter &Writer, 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 @@ void MCAsmLayout::LayoutFragment(MCFragment *F) { // 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;