28 if (
auto EC = Reader.readObject(Item.
Header))
33 if (
auto EC = Reader.readInteger(ExtraFileCount))
35 if (
auto EC = Reader.readArray(Item.
ExtraFiles, ExtraFileCount))
39 Len = Reader.getOffset();
65 HasExtraFiles(HasExtraFiles) {}
75 Size += Entries.size() *
sizeof(
uint32_t);
78 Size += ExtraFileCount *
sizeof(
uint32_t);
92 for (
const auto &
E : Entries) {
111 auto &
Entry = Entries.back();
121 Entries.emplace_back();
122 auto &
Entry = Entries.back();
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
This class represents lattice values for constants.
std::vector< support::ulittle32_t > ExtraFiles
Error initialize(BinaryStreamReader Reader)
ArrayRef< T > makeArrayRef(const T &OneElt)
Construct an ArrayRef from a single element.
Error commit(BinaryStreamWriter &Writer) const override
DebugInlineeLinesSubsection(DebugChecksumsSubsection &Checksums, bool HasExtraFiles=false)
InlineeSourceLineHeader Header
Error writeArray(ArrayRef< T > Array)
Writes an array of objects of type T to the underlying stream, as if by using memcpy.
uint32_t mapChecksumOffset(StringRef FileName) const
detail::packed_endian_specific_integral< uint32_t, little, unaligned > ulittle32_t
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
Provides write only access to a subclass of WritableBinaryStream.
const InlineeSourceLineHeader * Header
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
bool hasExtraFiles() const
static ErrorSuccess success()
Create a success value.
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
Error writeEnum(T Num)
Similar to writeInteger.
uint32_t calculateSerializedSize() const override
uint32_t bytesRemaining() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
DebugInlineeLinesSubsectionRef()
void addExtraFile(StringRef FileName)
FixedStreamArray< support::ulittle32_t > ExtraFiles
Lightweight error class with error context and mandatory checking.
void addInlineSite(TypeIndex FuncId, StringRef FileName, uint32_t SourceLine)
Provides read only access to a subclass of BinaryStream.
StringRef - Represent a constant reference to a string, i.e.
Error readEnum(T &Dest)
Similar to readInteger.
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...