LLVM 22.0.0git
llvm::lto::InputFile Class Reference

An input file. More...

#include "llvm/LTO/LTO.h"

Classes

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

Public Member Functions

LLVM_ABI ~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.
LLVM_ABI 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
LLVM_ABI BitcodeModulegetSingleBitcodeModule ()

Static Public Member Functions

static LLVM_ABI 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 119 of file LTO.h.

Constructor & Destructor Documentation

◆ ~InputFile()

InputFile::~InputFile ( )
default

References LLVM_ABI.

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 176 of file LTO.h.

◆ getComdatTable()

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

Definition at line 191 of file LTO.h.

◆ getDependentLibraries()

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

Returns dependent library specifiers from the input file.

Definition at line 179 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 590 of file LTO.cpp.

◆ getSingleBitcodeModule()

BitcodeModule & InputFile::getSingleBitcodeModule ( )

Definition at line 594 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 188 of file LTO.h.

◆ getTargetTriple()

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

Returns the input file's target triple.

Definition at line 185 of file LTO.h.

◆ symbols()

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

A range over the symbols in this InputFile.

Definition at line 173 of file LTO.h.


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