Lines Matching refs:TEW
76 TEW = TM.getELFWriterInfo(); in ELFWriter()
132 ElfHdr.emitByte(TEW->getEIClass()); // e_ident[EI_CLASS] in doInitialization()
133 ElfHdr.emitByte(TEW->getEIData()); // e_ident[EI_DATA] in doInitialization()
138 ElfHdr.emitWord16(TEW->getEMachine()); // e_machine = target in doInitialization()
144 ElfHdr.emitWord32(TEW->getEFlags()); // e_flags = whatever the target wants in doInitialization()
145 ElfHdr.emitWord16(TEW->getHdrSize()); // e_ehsize = ELF header size in doInitialization()
150 ElfHdr.emitWord16(TEW->getSHdrSize()); in doInitialization()
256 unsigned SectionType = TEW->hasRelocationAddend() ? in getRelocSection()
260 if (TEW->hasRelocationAddend()) in getRelocSection()
264 return getSection(SectionName, SectionType, 0, TEW->getPrefELFAlignment()); in getRelocSection()
599 TEW->getAbsoluteLabelMachineRelTy(), in EmitGlobalDataRelocation()
753 bool HasRelA = TEW->hasRelocationAddend(); in EmitRelocations()
768 RelSec.EntSize = TEW->getRelocationEntrySize(); in EmitRelocations()
783 unsigned RelType = TEW->getRelocationType(MR.getRelocationType()); in EmitRelocations()
784 unsigned RelTySize = TEW->getRelocationTySize(RelType); in EmitRelocations()
800 Addend = TEW->getDefaultAddendForRelTy(RelType, GlobalOffset); in EmitRelocations()
805 Addend = TEW->getDefaultAddendForRelTy(RelType); in EmitRelocations()
817 if (S.SectionIdx == SectionIdx && TEW->isPCRelativeRel(RelType)) { in EmitRelocations()
818 int64_t Value = TEW->computeRelocation(SymOffset, RelOffset, RelType); in EmitRelocations()
823 Addend = TEW->getDefaultAddendForRelTy(RelType, SymOffset); in EmitRelocations()
966 SymTab.Align = TEW->getPrefELFAlignment(); in EmitSymbolTable()
972 SymTab.EntSize = TEW->getSymTabEntrySize(); in EmitSymbolTable()
1058 unsigned TableAlign = TEW->getPrefELFAlignment(); in OutputSectionsAndSectionTable()