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) {}
92 for (
const auto &E : Entries) {
111 auto &
Entry = Entries.back();
121 Entries.emplace_back();
122 auto &
Entry = Entries.back();
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Provides read only access to a subclass of BinaryStream.
Error readEnum(T &Dest)
Similar to readInteger.
uint64_t bytesRemaining() const
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.
Provides write only access to a subclass of WritableBinaryStream.
Error writeArray(ArrayRef< T > Array)
Writes an array of objects of type T to the underlying stream, as if by using memcpy.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
Error writeEnum(T Num)
Similar to writeInteger.
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
StringRef - Represent a constant reference to a string, i.e.
const Extractor & getExtractor() const
uint32_t mapChecksumOffset(StringRef FileName) const
bool hasExtraFiles() const
DebugInlineeLinesSubsectionRef()
Error initialize(BinaryStreamReader Reader)
uint32_t calculateSerializedSize() const override
void addInlineSite(TypeIndex FuncId, StringRef FileName, uint32_t SourceLine)
Error commit(BinaryStreamWriter &Writer) const override
void addExtraFile(StringRef FileName)
DebugInlineeLinesSubsection(DebugChecksumsSubsection &Checksums, bool HasExtraFiles=false)
This is an optimization pass for GlobalISel generic memory operations.
std::vector< support::ulittle32_t > ExtraFiles
InlineeSourceLineHeader Header
FixedStreamArray< support::ulittle32_t > ExtraFiles
const InlineeSourceLineHeader * Header