Go to the documentation of this file.
9 #ifndef LLVM_DEBUGINFO_GSYM_STRINGTABLE_H
10 #define LLVM_DEBUGINFO_GSYM_STRINGTABLE_H
37 OS <<
"String table:\n";
39 const size_t Size =
S.Data.size();
40 while (Offset < Size) {
42 OS <<
HEX32(Offset) <<
": \"" << Str <<
"\"\n";
43 Offset += Str.size() + 1;
50 #endif // LLVM_DEBUGINFO_GSYM_STRINGTABLE_H
This is an optimization pass for GlobalISel generic memory operations.
StringRef operator[](size_t Offset) const
LLVM_NODISCARD size_t find(char C, size_t From=0) const
Search for the first character C in the string.
LLVM_NODISCARD StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
raw_ostream & operator<<(raw_ostream &OS, const FunctionInfo &R)
This class implements an extremely fast bulk output stream that can only output to a stream.
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
StringRef - Represent a constant reference to a string, i.e.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
constexpr LLVM_NODISCARD size_t size() const
size - Get the string size.
String tables in GSYM files are required to start with an empty string at offset zero.
StringRef getString(uint32_t Offset) const