Lines Matching refs:SD
31 doesSymbolRequireExternRelocation(const MCSymbolData *SD) {
33 if (SD->Symbol->isUndefined())
38 if (SD->getFlags() & SF_WeakDefinition)
64 uint64_t MachObjectWriter::getSymbolAddress(const MCSymbolData* SD,
66 const MCSymbol &S = SD->getSymbol();
93 return getSectionAddress(SD->getFragment()->getParent()) +
94 Layout.getSymbolOffset(SD);
97 uint64_t MachObjectWriter::getPaddingSize(const MCSectionData *SD,
99 uint64_t EndAddr = getSectionAddress(SD) + Layout.getSectionAddressSize(SD);
100 unsigned Next = SD->getLayoutOrder() + 1;
184 const MCSectionData &SD,
188 uint64_t SectionSize = Layout.getSectionAddressSize(&SD);
191 if (SD.getSection().isVirtualSection()) {
192 assert(Layout.getSectionFileSize(&SD) == 0 && "Invalid file size!");
202 const MCSectionMachO &Section = cast<MCSectionMachO>(SD.getSection());
206 Write64(getSectionAddress(&SD)); // address
209 Write32(getSectionAddress(&SD)); // address
215 if (SD.hasInstructions())
218 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!");
219 Write32(Log2_32(SD.getAlignment()));
223 Write32(IndirectSymBase.lookup(&SD)); // reserved1
534 const MCSectionData *SD = Order[i];
535 StartAddress = RoundUpToAlignment(StartAddress, SD->getAlignment());
536 SectionAddress[SD] = StartAddress;
537 StartAddress += Layout.getSectionAddressSize(SD);
542 StartAddress += getPaddingSize(SD, Layout);
659 const MCSectionData &SD = *it;
660 uint64_t Address = getSectionAddress(&SD);
661 uint64_t Size = Layout.getSectionAddressSize(&SD);
662 uint64_t FileSize = Layout.getSectionFileSize(&SD);
663 FileSize += getPaddingSize(&SD, Layout);
667 if (SD.getSection().isVirtualSection())