9#ifndef LLVM_DEBUGINFO_CODEVIEW_RECORDSERIALIZATION_H
10#define LLVM_DEBUGINFO_CODEVIEW_RECORDSERIALIZATION_H
86template <
typename T,
typename U>
108 while (!Reader.
empty() && Reader.
peek() < LF_PAD0) {
126 "Null terminated string is empty!");
128 while (Reader.
peek() != 0) {
134 return Reader.
skip(1);
161template <
typename T,
typename U>
166inline serialize_null_term_string_array_impl
185template <
typename T,
typename U>
191template <
typename T,
typename U>
220template <
typename T,
typename U,
typename... Args>
224 return consume(Reader,
Y, std::forward<Args>(Rest)...);
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
OptimizedStructLayoutField Field
An arbitrary precision integer that knows its signedness.
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 readObject(const T *&Dest)
Get a pointer to an object of type T from the underlying stream, as if by memcpy, and store the resul...
LLVM_ABI Error readCString(StringRef &Dest)
Read a null terminated string from Dest.
LLVM_ABI uint8_t peek() const
Examine the next byte of the underlying stream without advancing the stream's offset.
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 ...
LLVM_ABI Error skip(uint64_t Amount)
Advance the stream's offset by Amount bytes.
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.
LLVM Value Representation.
serialize_vector_tail_impl< T > serialize_array_tail(std::vector< T > &Item)
LLVM_ABI Error consume_numeric(BinaryStreamReader &Reader, uint64_t &Value)
Decodes a numeric leaf value that is known to be a particular type.
serialize_null_term_string_array_impl serialize_null_term_string_array(std::vector< StringRef > &Item)
LLVM_ABI StringRef getBytesAsCString(ArrayRef< uint8_t > LeafData)
serialize_array_impl< T, U > serialize_array(ArrayRef< T > &Item, U Func)
serialize_numeric_impl< T > serialize_numeric(T &Item)
LLVM_ABI StringRef getBytesAsCharacters(ArrayRef< uint8_t > LeafData)
Reinterpret a byte array as an array of characters.
serialize_conditional_impl< T, U > serialize_conditional(T &Item, U Func)
This is an optimization pass for GlobalISel generic memory operations.
RecordPrefix(uint16_t Kind)
Error deserialize(BinaryStreamReader &Reader) const
serialize_array_impl(ArrayRef< T > &Item, U Func)
serialize_arrayref_tail_impl(ArrayRef< T > &Item)
Error deserialize(BinaryStreamReader &Reader) const
Error deserialize(BinaryStreamReader &Reader) const
serialize_conditional_impl(T &Item, U Func)
serialize_null_term_string_array_impl(std::vector< StringRef > &Item)
std::vector< StringRef > & Item
Error deserialize(BinaryStreamReader &Reader) const
serialize_numeric_impl(T &Item)
Error deserialize(BinaryStreamReader &Reader) const
serialize_vector_tail_impl(std::vector< T > &Item)
Error deserialize(BinaryStreamReader &Reader) const