LLVM  10.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::gsym::StringTable Struct Reference

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

#include "llvm/DebugInfo/GSYM/StringTable.h"

Collaboration diagram for llvm::gsym::StringTable:
Collaboration graph
[legend]

Public Member Functions

 StringTable ()
 
 StringTable (StringRef D)
 
StringRef operator[] (size_t Offset) const
 
StringRef getString (uint32_t Offset) const
 
void clear ()
 

Public Attributes

StringRef Data
 

Detailed Description

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

Strings must be UTF8 NULL terminated strings.

Definition at line 24 of file StringTable.h.

Constructor & Destructor Documentation

◆ StringTable() [1/2]

llvm::gsym::StringTable::StringTable ( )
inline

Definition at line 26 of file StringTable.h.

◆ StringTable() [2/2]

llvm::gsym::StringTable::StringTable ( StringRef  D)
inline

Definition at line 27 of file StringTable.h.

Member Function Documentation

◆ clear()

void llvm::gsym::StringTable::clear ( )
inline

Definition at line 36 of file StringTable.h.

◆ getString()

StringRef llvm::gsym::StringTable::getString ( uint32_t  Offset) const
inline

Definition at line 29 of file StringTable.h.

References llvm::StringRef::size().

Referenced by llvm::gsym::operator<<(), and operator[]().

◆ operator[]()

StringRef llvm::gsym::StringTable::operator[] ( size_t  Offset) const
inline

Definition at line 28 of file StringTable.h.

References getString().

Member Data Documentation

◆ Data

StringRef llvm::gsym::StringTable::Data

Definition at line 25 of file StringTable.h.

Referenced by llvm::gsym::operator<<().


The documentation for this struct was generated from the following file: