Lines Matching defs:SD

32 doesSymbolRequireExternRelocation(const MCSymbolData *SD) {
34 if (SD->Symbol->isUndefined())
39 if (SD->getFlags() & SF_WeakDefinition)
65 uint64_t MachObjectWriter::getSymbolAddress(const MCSymbolData* SD,
67 const MCSymbol &S = SD->getSymbol();
94 return getSectionAddress(SD->getFragment()->getParent()) +
95 Layout.getSymbolOffset(SD);
98 uint64_t MachObjectWriter::getPaddingSize(const MCSectionData *SD,
100 uint64_t EndAddr = getSectionAddress(SD) + Layout.getSectionAddressSize(SD);
101 unsigned Next = SD->getLayoutOrder() + 1;
185 const MCSectionData &SD,
189 uint64_t SectionSize = Layout.getSectionAddressSize(&SD);
192 if (SD.getSection().isVirtualSection()) {
193 assert(Layout.getSectionFileSize(&SD) == 0 && "Invalid file size!");
203 const MCSectionMachO &Section = cast<MCSectionMachO>(SD.getSection());
207 Write64(getSectionAddress(&SD)); // address
210 Write32(getSectionAddress(&SD)); // address
216 if (SD.hasInstructions())
219 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!");
220 Write32(Log2_32(SD.getAlignment()));
224 Write32(IndirectSymBase.lookup(&SD)); // reserved1
548 const MCSectionData *SD = Order[i];
549 StartAddress = RoundUpToAlignment(StartAddress, SD->getAlignment());
550 SectionAddress[SD] = StartAddress;
551 StartAddress += Layout.getSectionAddressSize(SD);
556 StartAddress += getPaddingSize(SD, Layout);
687 const MCSectionData &SD = *it;
688 uint64_t Address = getSectionAddress(&SD);
689 uint64_t Size = Layout.getSectionAddressSize(&SD);
690 uint64_t FileSize = Layout.getSectionFileSize(&SD);
691 FileSize += getPaddingSize(&SD, Layout);
695 if (SD.getSection().isVirtualSection())