Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::irsymtab::Reader Class Reference

This class can be used to read a Symtab and Strtab produced by irsymtab::build. More...

#include "llvm/Object/IRSymtab.h"

Classes

class  SymbolRef
 Ephemeral symbols produced by Reader::symbols() and Reader::module_symbols(). More...

Public Types

using symbol_range = iterator_range<object::content_iterator<SymbolRef>>

Public Member Functions

 Reader ()=default
 Reader (StringRef Symtab, StringRef Strtab)
symbol_range symbols () const
 Returns the symbol table for the entire bitcode file.
size_t getNumModules () const
symbol_range module_symbols (unsigned I) const
 Returns a slice of the symbol table for the I'th module in the file.
StringRef getTargetTriple () const
StringRef getSourceFileName () const
 Returns the source file path specified at compile time.
std::vector< std::pair< StringRef, llvm::Comdat::SelectionKind > > getComdatTable () const
 Returns a table with all the comdats used by this file.
StringRef getCOFFLinkerOpts () const
 COFF-specific: returns linker options specified in the input file.
std::vector< StringRefgetDependentLibraries () const
 Returns dependent library specifiers.

Detailed Description

This class can be used to read a Symtab and Strtab produced by irsymtab::build.

Definition at line 239 of file IRSymtab.h.

Member Typedef Documentation

◆ symbol_range

Constructor & Destructor Documentation

◆ Reader() [1/2]

llvm::irsymtab::Reader::Reader ( )
default

◆ Reader() [2/2]

llvm::irsymtab::Reader::Reader ( StringRef Symtab,
StringRef Strtab )
inline

Definition at line 262 of file IRSymtab.h.

Member Function Documentation

◆ getCOFFLinkerOpts()

StringRef llvm::irsymtab::Reader::getCOFFLinkerOpts ( ) const
inline

COFF-specific: returns linker options specified in the input file.

Definition at line 301 of file IRSymtab.h.

◆ getComdatTable()

std::vector< std::pair< StringRef, llvm::Comdat::SelectionKind > > llvm::irsymtab::Reader::getComdatTable ( ) const
inline

Returns a table with all the comdats used by this file.

Definition at line 291 of file IRSymtab.h.

References llvm::CallingConv::C.

◆ getDependentLibraries()

std::vector< StringRef > llvm::irsymtab::Reader::getDependentLibraries ( ) const
inline

Returns dependent library specifiers.

Definition at line 304 of file IRSymtab.h.

◆ getNumModules()

size_t llvm::irsymtab::Reader::getNumModules ( ) const
inline

Definition at line 277 of file IRSymtab.h.

◆ getSourceFileName()

StringRef llvm::irsymtab::Reader::getSourceFileName ( ) const
inline

Returns the source file path specified at compile time.

Definition at line 287 of file IRSymtab.h.

◆ getTargetTriple()

StringRef llvm::irsymtab::Reader::getTargetTriple ( ) const
inline

Definition at line 284 of file IRSymtab.h.

◆ module_symbols()

Reader::symbol_range llvm::irsymtab::Reader::module_symbols ( unsigned I) const
inline

Returns a slice of the symbol table for the I'th module in the file.

The symbols enumerated by this method are ephemeral, but they can be copied into an irsymtab::Symbol object.

Definition at line 362 of file IRSymtab.h.

References I.

◆ symbols()

Reader::symbol_range llvm::irsymtab::Reader::symbols ( ) const
inline

Returns the symbol table for the entire bitcode file.

The symbols enumerated by this method are ephemeral, but they can be copied into an irsymtab::Symbol object.

Definition at line 357 of file IRSymtab.h.


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