Lines Matching refs:Layout
68 const MCAsmLayout &Layout) const { in getFragmentAddress()
70 Layout.getFragmentOffset(Fragment); in getFragmentAddress()
74 const MCAsmLayout &Layout) const { in getSymbolAddress()
85 if (!S.getVariableValue()->EvaluateAsRelocatable(Target, Layout)) in getSymbolAddress()
99 Address += getSymbolAddress(&Layout.getAssembler().getSymbolData( in getSymbolAddress()
100 Target.getSymA()->getSymbol()), Layout); in getSymbolAddress()
102 Address += getSymbolAddress(&Layout.getAssembler().getSymbolData( in getSymbolAddress()
103 Target.getSymB()->getSymbol()), Layout); in getSymbolAddress()
108 Layout.getSymbolOffset(SD); in getSymbolAddress()
112 const MCAsmLayout &Layout) const { in getPaddingSize()
113 uint64_t EndAddr = getSectionAddress(SD) + Layout.getSectionAddressSize(SD); in getPaddingSize()
115 if (Next >= Layout.getSectionOrder().size()) in getPaddingSize()
118 const MCSectionData &NextSD = *Layout.getSectionOrder()[Next]; in getPaddingSize()
199 const MCAsmLayout &Layout, in WriteSection() argument
204 uint64_t SectionSize = Layout.getSectionAddressSize(&SD); in WriteSection()
208 assert(Layout.getSectionFileSize(&SD) == 0 && "Invalid file size!"); in WriteSection()
305 const MCAsmLayout &Layout) { in WriteNlist() argument
333 Address = getSymbolAddress(&Data, Layout); in WriteNlist()
416 const MCAsmLayout &Layout, in RecordRelocation() argument
421 TargetObjectWriter->RecordRelocation(this, Asm, Layout, Fragment, Fixup, in RecordRelocation()
605 const MCAsmLayout &Layout) { in computeSectionAddresses() argument
607 const SmallVectorImpl<MCSectionData*> &Order = Layout.getSectionOrder(); in computeSectionAddresses()
612 StartAddress += Layout.getSectionAddressSize(SD); in computeSectionAddresses()
617 StartAddress += getPaddingSize(SD, Layout); in computeSectionAddresses()
622 const MCAsmLayout &Layout) { in markAbsoluteVariableSymbols() argument
634 if (Expr->EvaluateAsRelocatable(Value, Layout)) { in markAbsoluteVariableSymbols()
642 const MCAsmLayout &Layout) { in ExecutePostLayoutBinding() argument
643 computeSectionAddresses(Asm, Layout); in ExecutePostLayoutBinding()
650 markAbsoluteVariableSymbols(Asm, Layout); in ExecutePostLayoutBinding()
737 const MCAsmLayout &Layout) { in WriteObject() argument
783 uint64_t Size = Layout.getSectionAddressSize(&SD); in WriteObject()
784 uint64_t FileSize = Layout.getSectionFileSize(&SD); in WriteObject()
785 FileSize += getPaddingSize(&SD, Layout); in WriteObject()
815 WriteSection(Asm, Layout, *it, SectionStart, RelocTableEnd, NumRelocs); in WriteObject()
871 Asm.writeSectionData(it, Layout); in WriteObject()
873 uint64_t Pad = getPaddingSize(it, Layout); in WriteObject()
899 getSymbolAddress(&Layout.getAssembler().getSymbolData(*Data->Start), in WriteObject()
900 Layout); in WriteObject()
902 getSymbolAddress(&Layout.getAssembler().getSymbolData(*Data->End), in WriteObject()
903 Layout); in WriteObject()
943 WriteNlist(LocalSymbolData[i], Layout); in WriteObject()
945 WriteNlist(ExternalSymbolData[i], Layout); in WriteObject()
947 WriteNlist(UndefinedSymbolData[i], Layout); in WriteObject()