10 #ifndef LLVM_DEBUGINFO_CODEVIEW_RECORDITERATOR_H
11 #define LLVM_DEBUGINFO_CODEVIEW_RECORDITERATOR_H
66 template <
typename Kind>
70 using namespace codeview;
71 const RecordPrefix *
Prefix =
nullptr;
78 return make_error<CodeViewError>(cv_error_code::corrupt_record);
94 #endif // LLVM_DEBUGINFO_CODEVIEW_RECORDITERATOR_H
ArrayRef< uint8_t > data() const
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...
Optional< uint32_t > hash() const
StringRef str_data() const
SmallVector< std::pair< uint32_t, TypeIndex >, 8 > Mappings
uint32_t getOffset() const
CVRecord< Kind > OriginalRecord
void setHash(uint32_t Value)
size_t size() const
size - Get the array size.
The instances of the Type class are immutable: once they are created, they are never changed...
Optional< uint32_t > Hash
void setOffset(uint32_t Off)
static ErrorSuccess success()
Create a success value.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
ArrayRef< uint8_t > content() const
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
CVRecord(Kind K, ArrayRef< uint8_t > Data)
ArrayRef< uint8_t > RecordData
Error readBytes(ArrayRef< uint8_t > &Buffer, uint32_t Size)
Read Size bytes from the underlying stream at the current offset and and set Buffer to the resulting ...
ArrayRef< T > drop_front(size_t N=1) const
Drop the first N elements of the array.
LLVM Value Representation.
Lightweight error class with error context and mandatory checking.
RemappedRecord(const CVRecord< Kind > &R)
Provides read only access to a subclass of BinaryStream.
StringRef - Represent a constant reference to a string, i.e.