LLVM  5.0.0
Classes | Public Types | Public Member Functions | List of all members
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. More...
 
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. More...
 
StringRef getTargetTriple () const
 
StringRef getSourceFileName () const
 Returns the source file path specified at compile time. More...
 
std::vector< StringRef > getComdatTable () const
 Returns a table with all the comdats used by this file. More...
 
StringRef getCOFFLinkerOpts () const
 COFF-specific: returns linker options specified in the input file. More...
 

Detailed Description

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

Definition at line 222 of file IRSymtab.h.

Member Typedef Documentation

Definition at line 251 of file IRSymtab.h.

Constructor & Destructor Documentation

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

Definition at line 244 of file IRSymtab.h.

Member Function Documentation

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

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

Definition at line 280 of file IRSymtab.h.

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

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

Definition at line 271 of file IRSymtab.h.

References C.

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

Definition at line 258 of file IRSymtab.h.

Referenced by llvm::irsymtab::readBitcode().

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

Returns the source file path specified at compile time.

Definition at line 268 of file IRSymtab.h.

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

Definition at line 265 of file IRSymtab.h.

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 328 of file IRSymtab.h.

References llvm::irsymtab::storage::Module::Begin, llvm::irsymtab::storage::Module::End, I, and llvm::irsymtab::storage::Module::UncBegin.

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 323 of file IRSymtab.h.


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