LLVM: include/llvm/DebugInfo/GSYM/StringTable.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_DEBUGINFO_GSYM_STRINGTABLE_H

10#define LLVM_DEBUGINFO_GSYM_STRINGTABLE_H

11

14#include <stdint.h>

15

16namespace llvm {

17namespace gsym {

18

19

20

35

37 OS << "String table:\n";

42 OS << HEX32(Offset) << ": \"" << Str << "\"\n";

43 Offset += Str.size() + 1;

44 }

45 return OS;

46}

47

48}

49}

50#endif

static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")

StringRef - Represent a constant reference to a string, i.e.

constexpr size_t size() const

size - Get the string size.

This class implements an extremely fast bulk output stream that can only output to a stream.

LLVM_ABI raw_ostream & operator<<(raw_ostream &OS, const CallSiteInfo &CSI)

This is an optimization pass for GlobalISel generic memory operations.

String tables in GSYM files are required to start with an empty string at offset zero.

Definition StringTable.h:21

StringRef Data

Definition StringTable.h:22

void clear()

Definition StringTable.h:33

StringTable(StringRef D)

Definition StringTable.h:24

StringRef operator[](size_t Offset) const

Definition StringTable.h:25

StringRef getString(uint32_t Offset) const

Definition StringTable.h:26