10 #ifndef LLVM_DEBUGINFO_CODEVIEW_DEBUGSTRINGTABLESUBSECTION_H 11 #define LLVM_DEBUGINFO_CODEVIEW_DEBUGSTRINGTABLESUBSECTION_H 24 class BinaryStreamReader;
74 uint32_t calculateSerializedSize()
const override;
80 return StringToId.
begin();
85 std::vector<uint32_t> sortedIds()
const;
97 #endif // LLVM_DEBUGINFO_CODEVIEW_DEBUGSTRINGTABLESUBSECTION_H This class represents lattice values for constants.
Expected< StringRef > getString(uint32_t Offset) const
StringMap< uint32_t >::const_iterator end() const
Tagged union holding either a T or a Error.
StringMap< uint32_t >::const_iterator begin() const
Provides write only access to a subclass of WritableBinaryStream.
auto size(R &&Range, typename std::enable_if< std::is_same< typename std::iterator_traits< decltype(Range.begin())>::iterator_category, std::random_access_iterator_tag >::value, void >::type *=nullptr) -> decltype(std::distance(Range.begin(), Range.end()))
Get the size of a range.
BinaryStreamRef getBuffer() const
Represents a read-write view of a CodeView string table.
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
static bool classof(const DebugSubsectionRef *S)
DebugSubsectionKind kind() const
Represents a read-only view of a CodeView string table.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
Error initialize(BinaryStreamRef Contents)
static bool classof(const DebugSubsection *S)
DebugStringTableSubsectionRef()
Lightweight error class with error context and mandatory checking.
Provides read only access to a subclass of BinaryStream.
StringRef - Represent a constant reference to a string, i.e.
DebugSubsectionKind kind() const