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