LLVM 20.0.0git
|
#include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h"
Public Member Functions | |
DebugChecksumsSubsection (DebugStringTableSubsection &Strings) | |
void | addChecksum (StringRef FileName, FileChecksumKind Kind, ArrayRef< uint8_t > Bytes) |
uint32_t | calculateSerializedSize () const override |
Error | commit (BinaryStreamWriter &Writer) const override |
uint32_t | mapChecksumOffset (StringRef FileName) const |
Public Member Functions inherited from llvm::codeview::DebugSubsection | |
DebugSubsection (DebugSubsectionKind Kind) | |
virtual | ~DebugSubsection () |
DebugSubsectionKind | kind () const |
virtual Error | commit (BinaryStreamWriter &Writer) const =0 |
virtual uint32_t | calculateSerializedSize () const =0 |
Static Public Member Functions | |
static bool | classof (const DebugSubsection *S) |
Static Public Member Functions inherited from llvm::codeview::DebugSubsection | |
static bool | classof (const DebugSubsection *S) |
Additional Inherited Members | |
Protected Attributes inherited from llvm::codeview::DebugSubsection | |
DebugSubsectionKind | Kind |
Definition at line 77 of file DebugChecksumsSubsection.h.
|
explicit |
Definition at line 63 of file DebugChecksumsSubsection.cpp.
void DebugChecksumsSubsection::addChecksum | ( | StringRef | FileName, |
FileChecksumKind | Kind, | ||
ArrayRef< uint8_t > | Bytes | ||
) |
Definition at line 67 of file DebugChecksumsSubsection.cpp.
References llvm::alignTo(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold, GrowthDelay >::Allocate(), assert(), llvm::codeview::Copy, llvm::ArrayRef< T >::data(), llvm::ArrayRef< T >::empty(), llvm::codeview::DebugStringTableSubsection::insert(), llvm::codeview::DebugSubsection::Kind, and llvm::ArrayRef< T >::size().
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 90 of file DebugChecksumsSubsection.cpp.
|
inlinestatic |
Definition at line 81 of file DebugChecksumsSubsection.h.
References llvm::codeview::FileChecksums, and llvm::codeview::DebugSubsection::kind().
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 94 of file DebugChecksumsSubsection.cpp.
References llvm::codeview::EC, llvm::BinaryStreamWriter::padToAlignment(), llvm::Error::success(), llvm::BinaryStreamWriter::writeArray(), and llvm::BinaryStreamWriter::writeObject().
Definition at line 110 of file DebugChecksumsSubsection.cpp.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), llvm::codeview::DebugStringTableSubsection::getIdForString(), and llvm::Offset.
Referenced by llvm::codeview::DebugInlineeLinesSubsection::addExtraFile(), llvm::codeview::DebugInlineeLinesSubsection::addInlineSite(), and llvm::codeview::DebugLinesSubsection::createBlock().