Go to the documentation of this file.
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();
uint32_t calculateSerializedSize() const override
This is an optimization pass for GlobalISel generic memory operations.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
Error writeEnum(T Num)
Similar to writeInteger.
Provides write only access to a subclass of WritableBinaryStream.
static ErrorSuccess success()
Create a success value.
uint64_t bytesRemaining() const
Error writeArray(ArrayRef< T > Array)
Writes an array of objects of type T to the underlying stream, as if by using memcpy.
const InlineeSourceLineHeader * Header
Error initialize(BinaryStreamReader Reader)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
bool hasExtraFiles() const
std::vector< support::ulittle32_t > ExtraFiles
FixedStreamArray< support::ulittle32_t > ExtraFiles
Provides read only access to a subclass of BinaryStream.
detail::packed_endian_specific_integral< uint32_t, little, unaligned > ulittle32_t
uint32_t mapChecksumOffset(StringRef FileName) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void addInlineSite(TypeIndex FuncId, StringRef FileName, uint32_t SourceLine)
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
StringRef - Represent a constant reference to a string, i.e.
DebugInlineeLinesSubsection(DebugChecksumsSubsection &Checksums, bool HasExtraFiles=false)
InlineeSourceLineHeader Header
Lightweight error class with error context and mandatory checking.
Error readEnum(T &Dest)
Similar to readInteger.
ArrayRef< T > makeArrayRef(const T &OneElt)
Construct an ArrayRef from a single element.
DebugInlineeLinesSubsectionRef()
const Extractor & getExtractor() const
Error commit(BinaryStreamWriter &Writer) const override
void addExtraFile(StringRef FileName)
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 ...
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.