Home
last modified time | relevance | path

Searched refs:RecordPrefix (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DCVRecord.h35 CVRecord(const RecordPrefix *P, size_t Size) in CVRecord()
43 if (RecordData.size() < sizeof(RecordPrefix)) in kind()
46 reinterpret_cast<const RecordPrefix *>(RecordData.data())->RecordKind)); in kind()
57 return RecordData.drop_front(sizeof(RecordPrefix)); in content()
70 if (StreamBuffer.size() < sizeof(RecordPrefix)) in forEachCodeViewRecord()
73 const RecordPrefix *Prefix = in forEachCodeViewRecord()
74 reinterpret_cast<const RecordPrefix *>(StreamBuffer.data()); in forEachCodeViewRecord()
94 const RecordPrefix *Prefix = nullptr; in readCVRecordFromStream()
H A DTypeDeserializer.h56 const RecordPrefix *Prefix = in deserializeAs()
57 reinterpret_cast<const RecordPrefix *>(Data.data()); in deserializeAs()
114 RecordPrefix Pre(static_cast<uint16_t>(TypeLeafKind::LF_FIELDLIST)); in FieldListDeserializer()
120 RecordPrefix Pre(static_cast<uint16_t>(TypeLeafKind::LF_FIELDLIST)); in ~FieldListDeserializer()
H A DSymbolSerializer.h41 RecordPrefix Prefix; in writeRecordPrefix()
55 RecordPrefix Prefix{uint16_t(Sym.Kind)}; in writeOneSymbol()
H A DRecordSerialization.h32 struct RecordPrefix { struct
33 RecordPrefix() = default;
34 explicit RecordPrefix(uint16_t Kind) : RecordLen(2), RecordKind(Kind) {} in RecordPrefix() argument
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DSimpleTypeSerializer.cpp41 RecordPrefix DummyPrefix(uint16_t(Record.getKind())); in serialize()
44 RecordPrefix *Prefix = reinterpret_cast<RecordPrefix *>(ScratchBuffer.data()); in serialize()
45 CVType CVT(Prefix, sizeof(RecordPrefix)); in serialize()
H A DContinuationRecordBuilder.cpp17 RecordPrefix Prefix;
70 RecordPrefix Prefix(getTypeLeafKind(RecordKind)); in begin()
114 assert(getCurrentSegmentLength() == MemberLength + sizeof(RecordPrefix)); in writeMemberType()
158 RecordPrefix *Prefix = reinterpret_cast<RecordPrefix *>(Data.data()); in createSegmentRecord()
159 Prefix->RecordLen = Data.size() - sizeof(RecordPrefix::RecordLen); in createSegmentRecord()
174 RecordPrefix Prefix(getTypeLeafKind(*Kind)); in end()
H A DTypeIndexDiscovery.cpp470 RecordData = RecordData.drop_front(sizeof(RecordPrefix)); in resolveTypeIndexReferences()
495 const RecordPrefix *P = in discoverTypeIndices()
496 reinterpret_cast<const RecordPrefix *>(RecordData.data()); in discoverTypeIndices()
498 ::discoverTypeIndices(RecordData.drop_front(sizeof(RecordPrefix)), K, Refs); in discoverTypeIndices()
509 const RecordPrefix *P = in discoverTypeIndicesInSymbol()
510 reinterpret_cast<const RecordPrefix *>(RecordData.data()); in discoverTypeIndicesInSymbol()
512 return ::discoverTypeIndices(RecordData.drop_front(sizeof(RecordPrefix)), K, in discoverTypeIndicesInSymbol()
H A DTypeHashing.cpp41 S.update(RecordData.take_front(sizeof(RecordPrefix))); in hashType()
42 RecordData = RecordData.drop_front(sizeof(RecordPrefix)); in hashType()
H A DTypeStreamMerger.cpp404 uint8_t *DestContent = Storage.data() + sizeof(RecordPrefix); in remapIndices()
420 RecordPrefix *StorageHeader = in remapIndices()
421 reinterpret_cast<RecordPrefix *>(Storage.data()); in remapIndices()
H A DTypeRecordMapping.cpp242 MaxLen = MaxRecordLength - sizeof(RecordPrefix); in visitTypeBegin()
284 error(IO.beginRecord(MaxRecordLength - sizeof(RecordPrefix) - in visitMemberBegin()
H A DSymbolRecordMapping.cpp37 error(IO.beginRecord(MaxRecordLength - sizeof(RecordPrefix))); in visitSymbolBegin()
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DCodeViewYAMLSymbols.cpp268 RecordPrefix Prefix; in toCodeViewSymbol()
269 uint32_t TotalLen = sizeof(RecordPrefix) + Data.size(); in toCodeViewSymbol()
273 ::memcpy(Buffer, &Prefix, sizeof(RecordPrefix)); in toCodeViewSymbol()
274 ::memcpy(Buffer + sizeof(RecordPrefix), Data.data(), Data.size()); in toCodeViewSymbol()
280 Data = CVS.RecordData.drop_front(sizeof(RecordPrefix)); in fromCodeViewSymbol()
/llvm-project-15.0.7/lld/COFF/
H A DPDB.cpp334 const RecordPrefix *prefix = in symbolKind()
335 reinterpret_cast<const RecordPrefix *>(recordData.data()); in symbolKind()
342 RecordPrefix *prefix = reinterpret_cast<RecordPrefix *>(recordData.data()); in translateIdSymbols()
358 auto content = recordData.drop_front(sizeof(RecordPrefix)); in translateIdSymbols()
411 sizeof(RecordPrefix)); in getSymbolScopeFields()
537 reinterpret_cast<RecordPrefix *>(recordBytes.data())->RecordLen = in fixRecordAlignment()
546 auto *prefix = reinterpret_cast<RecordPrefix *>(recordBytes.data()); in replaceWithSkipRecord()
H A DDebugTypes.cpp223 MutableArrayRef<uint8_t> contents = rec.drop_front(sizeof(RecordPrefix)); in remapRecord()
235 reinterpret_cast<const RecordPrefix *>(rec.data())->RecordKind; in remapRecord()
615 reinterpret_cast<RecordPrefix *>(newRec.data())->RecordLen = newSize - 2; in mergeTypeRecord()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DGSIStreamBuilder.cpp89 RecordPrefix Prefix;
/llvm-project-15.0.7/llvm/unittests/DebugInfo/CodeView/
H A DTypeIndexDiscoveryTest.cpp92 RecordData = RecordData.drop_front(sizeof(RecordPrefix)); in checkOneTypeReference()