LLVM 20.0.0git
|
In-memory representation of the string table parsed from a buffer (e.g. More...
#include "llvm/Remarks/RemarkParser.h"
Public Member Functions | |
ParsedStringTable (StringRef Buffer) | |
ParsedStringTable (const ParsedStringTable &)=delete | |
Disable copy. | |
ParsedStringTable & | operator= (const ParsedStringTable &)=delete |
ParsedStringTable (ParsedStringTable &&)=default | |
Should be movable. | |
ParsedStringTable & | operator= (ParsedStringTable &&)=default |
size_t | size () const |
Expected< StringRef > | operator[] (size_t Index) const |
Public Attributes | |
StringRef | Buffer |
The buffer mapped from the section contents. | |
std::vector< size_t > | Offsets |
This object has high changes to be std::move'd around, so don't use a SmallVector for once. | |
In-memory representation of the string table parsed from a buffer (e.g.
the remarks section).
Definition at line 60 of file RemarkParser.h.
ParsedStringTable::ParsedStringTable | ( | StringRef | Buffer | ) |
Definition at line 26 of file RemarkParser.cpp.
References Buffer, llvm::StringRef::data(), llvm::StringRef::empty(), Offsets, and llvm::StringRef::split().
|
delete |
Disable copy.
|
default |
Should be movable.
|
delete |
|
default |
Definition at line 36 of file RemarkParser.cpp.
References Buffer, llvm::createStringError(), llvm::StringRef::data(), llvm::Offset, Offsets, and llvm::StringRef::size().
|
inline |
Definition at line 75 of file RemarkParser.h.
References Offsets.
StringRef llvm::remarks::ParsedStringTable::Buffer |
The buffer mapped from the section contents.
Definition at line 62 of file RemarkParser.h.
Referenced by operator[](), and ParsedStringTable().
std::vector<size_t> llvm::remarks::ParsedStringTable::Offsets |
This object has high changes to be std::move'd around, so don't use a SmallVector for once.
Definition at line 65 of file RemarkParser.h.
Referenced by operator[](), ParsedStringTable(), and size().