Lines Matching refs:Layout
84 const MCAsmLayout &Layout) const { in getFragmentAddress()
86 Layout.getFragmentOffset(Fragment); in getFragmentAddress()
90 const MCAsmLayout &Layout) const { in getSymbolAddress()
98 if (!S.getVariableValue()->evaluateAsRelocatable(Target, &Layout, nullptr)) in getSymbolAddress()
112 Address += getSymbolAddress(Target.getSymA()->getSymbol(), Layout); in getSymbolAddress()
114 Address += getSymbolAddress(Target.getSymB()->getSymbol(), Layout); in getSymbolAddress()
119 Layout.getSymbolOffset(S); in getSymbolAddress()
123 const MCAsmLayout &Layout) const { in getPaddingSize()
124 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec); in getPaddingSize()
126 if (Next >= Layout.getSectionOrder().size()) in getPaddingSize()
129 const MCSection &NextSec = *Layout.getSectionOrder()[Next]; in getPaddingSize()
216 void MachObjectWriter::writeSection(const MCAsmLayout &Layout, in writeSection() argument
221 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec); in writeSection()
226 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!"); in writeSection()
340 const MCAsmLayout &Layout) { in writeNlist() argument
384 Address = getSymbolAddress(OrigSymbol, Layout); in writeNlist()
464 const MCAsmLayout &Layout, in recordRelocation() argument
474 TargetObjectWriter->recordRelocation(this, Asm, Layout, Fragment, Fixup, in recordRelocation()
642 const MCAsmLayout &Layout) { in computeSectionAddresses() argument
644 for (const MCSection *Sec : Layout.getSectionOrder()) { in computeSectionAddresses()
647 StartAddress += Layout.getSectionAddressSize(Sec); in computeSectionAddresses()
652 StartAddress += getPaddingSize(Sec, Layout); in computeSectionAddresses()
657 const MCAsmLayout &Layout) { in executePostLayoutBinding() argument
658 computeSectionAddresses(Asm, Layout); in executePostLayoutBinding()
758 const MCAsmLayout &Layout) { in writeObject() argument
786 Layout.getAssembler().getVersionInfo(); in writeObject()
805 Layout.getAssembler().getDarwinTargetVariantVersionInfo(); in writeObject()
823 uint64_t LOHRawSize = Asm.getLOHContainer().getEmitSize(*this, Layout); in writeObject()
854 uint64_t Size = Layout.getSectionAddressSize(&Sec); in writeObject()
855 uint64_t FileSize = Layout.getSectionFileSize(&Sec); in writeObject()
856 FileSize += getPaddingSize(&Sec, Layout); in writeObject()
892 writeSection(Layout, Sec, getSectionAddress(&Sec), SectionStart, Flags, in writeObject()
992 Asm.writeSectionData(W.OS, &Sec, Layout); in writeObject()
994 uint64_t Pad = getPaddingSize(&Sec, Layout); in writeObject()
1017 uint64_t Start = getSymbolAddress(*Data->Start, Layout); in writeObject()
1020 End = getSymbolAddress(*Data->End, Layout); in writeObject()
1039 Asm.getLOHContainer().emit(*this, Layout); in writeObject()
1076 writeNlist(Entry, Layout); in writeObject()