reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
69 Hdr.Magic = GSYM_MAGIC; 70 Hdr.Version = GSYM_VERSION; 71 Hdr.AddrOffSize = 0; 72 Hdr.UUIDSize = static_cast<uint8_t>(UUID.size()); 73 Hdr.BaseAddress = MinAddr; 74 Hdr.NumAddresses = static_cast<uint32_t>(Funcs.size()); 75 Hdr.StrtabOffset = 0; // We will fix this up later. 76 Hdr.StrtabOffset = 0; // We will fix this up later. 77 memset(Hdr.UUID, 0, sizeof(Hdr.UUID)); 77 memset(Hdr.UUID, 0, sizeof(Hdr.UUID)); 78 if (UUID.size() > sizeof(Hdr.UUID)) 83 Hdr.AddrOffSize = 1; 85 Hdr.AddrOffSize = 2; 87 Hdr.AddrOffSize = 4; 89 Hdr.AddrOffSize = 8; 92 memcpy(Hdr.UUID, UUID.data(), UUID.size()); 94 llvm::Error Err = Hdr.encode(O); 99 O.alignTo(Hdr.AddrOffSize); 101 uint64_t AddrOffset = FuncInfo.startAddress() - Hdr.BaseAddress; 102 switch(Hdr.AddrOffSize) {