LLVM 20.0.0git
Classes | Public Member Functions | Static Public Member Functions | List of all members
llvm::lto::InputFile Class Reference

An input file. More...

#include "llvm/LTO/LTO.h"

Classes

class  Symbol
 The purpose of this class is to only expose the symbol information that an LTO client should need in order to do symbol resolution. More...
 

Public Member Functions

 ~InputFile ()
 
ArrayRef< Symbolsymbols () const
 A range over the symbols in this InputFile.
 
StringRef getCOFFLinkerOpts () const
 Returns linker options specified in the input file.
 
ArrayRef< StringRefgetDependentLibraries () const
 Returns dependent library specifiers from the input file.
 
StringRef getName () const
 Returns the path to the InputFile.
 
StringRef getTargetTriple () const
 Returns the input file's target triple.
 
StringRef getSourceFileName () const
 Returns the source file path specified at compile time.
 
ArrayRef< std::pair< StringRef, Comdat::SelectionKind > > getComdatTable () const
 
BitcodeModulegetSingleBitcodeModule ()
 

Static Public Member Functions

static Expected< std::unique_ptr< InputFile > > create (MemoryBufferRef Object)
 Create an InputFile.
 

Detailed Description

An input file.

This is a symbol table wrapper that only exposes the information that an LTO client should need in order to do symbol resolution.

Definition at line 111 of file LTO.h.

Constructor & Destructor Documentation

◆ ~InputFile()

InputFile::~InputFile ( )
default

Member Function Documentation

◆ create()

Expected< std::unique_ptr< InputFile > > InputFile::create ( MemoryBufferRef  Object)
static

◆ getCOFFLinkerOpts()

StringRef llvm::lto::InputFile::getCOFFLinkerOpts ( ) const
inline

Returns linker options specified in the input file.

Definition at line 167 of file LTO.h.

◆ getComdatTable()

ArrayRef< std::pair< StringRef, Comdat::SelectionKind > > llvm::lto::InputFile::getComdatTable ( ) const
inline

Definition at line 182 of file LTO.h.

◆ getDependentLibraries()

ArrayRef< StringRef > llvm::lto::InputFile::getDependentLibraries ( ) const
inline

Returns dependent library specifiers from the input file.

Definition at line 170 of file LTO.h.

Referenced by llvm::LTOModule::getDependentLibrary(), and llvm::LTOModule::getDependentLibraryCount().

◆ getName()

StringRef InputFile::getName ( ) const

Returns the path to the InputFile.

Definition at line 581 of file LTO.cpp.

Referenced by writeToResolutionFile().

◆ getSingleBitcodeModule()

BitcodeModule & InputFile::getSingleBitcodeModule ( )

Definition at line 585 of file LTO.cpp.

References assert().

◆ getSourceFileName()

StringRef llvm::lto::InputFile::getSourceFileName ( ) const
inline

Returns the source file path specified at compile time.

Definition at line 179 of file LTO.h.

◆ getTargetTriple()

StringRef llvm::lto::InputFile::getTargetTriple ( ) const
inline

Returns the input file's target triple.

Definition at line 176 of file LTO.h.

◆ symbols()

ArrayRef< Symbol > llvm::lto::InputFile::symbols ( ) const
inline

A range over the symbols in this InputFile.

Definition at line 164 of file LTO.h.

Referenced by writeToResolutionFile().


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