LLVM 20.0.0git
Public Member Functions | List of all members
llvm::BTFStringTable Class Reference

String table. More...

#include "Target/BPF/BTFDebug.h"

Public Member Functions

 BTFStringTable ()
 
uint32_t getSize ()
 
std::vector< std::string > & getTable ()
 
uint32_t addString (StringRef S)
 Add a string to the string table and returns its offset in the table.
 

Detailed Description

String table.

Definition at line 246 of file BTFDebug.h.

Constructor & Destructor Documentation

◆ BTFStringTable()

llvm::BTFStringTable::BTFStringTable ( )
inline

Definition at line 257 of file BTFDebug.h.

Member Function Documentation

◆ addString()

uint32_t BTFStringTable::addString ( StringRef  S)

Add a string to the string table and returns its offset in the table.

Definition at line 503 of file BTFDebug.cpp.

References llvm::Offset, llvm::StringRef::size(), and Size.

◆ getSize()

uint32_t llvm::BTFStringTable::getSize ( )
inline

Definition at line 258 of file BTFDebug.h.

◆ getTable()

std::vector< std::string > & llvm::BTFStringTable::getTable ( )
inline

Definition at line 259 of file BTFDebug.h.


The documentation for this class was generated from the following files: