#include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/DebugInfo/CodeView/CodeView.h"
#include "llvm/DebugInfo/CodeView/DebugStringTableSubsection.h"
#include "llvm/Support/BinaryStreamReader.h"
#include "llvm/Support/BinaryStreamWriter.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MathExtras.h"
#include <cassert>
#include <cstdint>
#include <cstring>
usingnamespacellvm;
usingnamespacellvm::codeview;
struct FileChecksumEntryHeader { … };
Error VarStreamArrayExtractor<FileChecksumEntry>::
operator()(BinaryStreamRef Stream, uint32_t &Len, FileChecksumEntry &Item) { … }
Error DebugChecksumsSubsectionRef::initialize(BinaryStreamReader Reader) { … }
Error DebugChecksumsSubsectionRef::initialize(BinaryStreamRef Section) { … }
DebugChecksumsSubsection::DebugChecksumsSubsection(
DebugStringTableSubsection &Strings)
: … { … }
void DebugChecksumsSubsection::addChecksum(StringRef FileName,
FileChecksumKind Kind,
ArrayRef<uint8_t> Bytes) { … }
uint32_t DebugChecksumsSubsection::calculateSerializedSize() const { … }
Error DebugChecksumsSubsection::commit(BinaryStreamWriter &Writer) const { … }
uint32_t DebugChecksumsSubsection::mapChecksumOffset(StringRef FileName) const { … }