/// 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;
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()) {
// 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;