reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
94 llvm::Error Err = Hdr.encode(O); 99 O.alignTo(Hdr.AddrOffSize); 103 case 1: O.writeU8(static_cast<uint8_t>(AddrOffset)); break; 104 case 2: O.writeU16(static_cast<uint16_t>(AddrOffset)); break; 105 case 4: O.writeU32(static_cast<uint32_t>(AddrOffset)); break; 106 case 8: O.writeU64(AddrOffset); break; 111 O.alignTo(4); 112 const off_t AddrInfoOffsetsOffset = O.tell(); 114 O.writeU32(0); 117 O.alignTo(4); 125 O.writeU32(static_cast<uint32_t>(NumFiles)); 127 O.writeU32(File.Dir); 128 O.writeU32(File.Base); 132 const off_t StrtabOffset = O.tell(); 133 StrTab.write(O.get_stream()); 134 const off_t StrtabSize = O.tell() - StrtabOffset; 139 if (Expected<uint64_t> OffsetOrErr = FuncInfo.encode(O)) 145 O.fixup32((uint32_t)StrtabOffset, offsetof(Header, StrtabOffset)); 146 O.fixup32((uint32_t)StrtabSize, offsetof(Header, StrtabSize)); 151 O.fixup32(AddrInfoOffset, AddrInfoOffsetsOffset + Offset);