LLVM 24.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 ()
LLVM_ABI BitcodeModulegetPrimaryBitcodeModule ()
MemoryBufferRef getFileBuffer () const
bool getExtractForDistribution () const
void setExtractForDistribution (bool EFD)
bool isFatLTOObject () const
void fatLTOObject (bool FO)
bool isThinLTO () const
void setArchivePathAndName (StringRef Path, StringRef Name)
StringRef getArchivePath () const
StringRef getMemberName () const

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 115 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

◆ fatLTOObject()

void llvm::lto::InputFile::fatLTOObject ( bool FO)
inline

Definition at line 225 of file LTO.h.

◆ getArchivePath()

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

Definition at line 235 of file LTO.h.

◆ getCOFFLinkerOpts()

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

Returns linker options specified in the input file.

Definition at line 191 of file LTO.h.

◆ getComdatTable()

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

Definition at line 206 of file LTO.h.

◆ getDependentLibraries()

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

Returns dependent library specifiers from the input file.

Definition at line 194 of file LTO.h.

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

◆ getExtractForDistribution()

bool llvm::lto::InputFile::getExtractForDistribution ( ) const
inline

Definition at line 218 of file LTO.h.

◆ getFileBuffer()

MemoryBufferRef llvm::lto::InputFile::getFileBuffer ( ) const
inline

Definition at line 215 of file LTO.h.

◆ getMemberName()

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

Definition at line 236 of file LTO.h.

◆ getName()

StringRef InputFile::getName ( ) const

Returns the path to the InputFile.

Definition at line 670 of file LTO.cpp.

◆ getPrimaryBitcodeModule()

BitcodeModule & InputFile::getPrimaryBitcodeModule ( )

Definition at line 679 of file LTO.cpp.

◆ getSingleBitcodeModule()

BitcodeModule & InputFile::getSingleBitcodeModule ( )

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

◆ getTargetTriple()

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

Returns the input file's target triple.

Definition at line 200 of file LTO.h.

◆ isFatLTOObject()

bool llvm::lto::InputFile::isFatLTOObject ( ) const
inline

Definition at line 223 of file LTO.h.

◆ isThinLTO()

bool llvm::lto::InputFile::isThinLTO ( ) const
inline

Definition at line 228 of file LTO.h.

◆ setArchivePathAndName()

void llvm::lto::InputFile::setArchivePathAndName ( StringRef Path,
StringRef Name )
inline

Definition at line 231 of file LTO.h.

◆ setExtractForDistribution()

void llvm::lto::InputFile::setExtractForDistribution ( bool EFD)
inline

Definition at line 221 of file LTO.h.

◆ symbols()

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

A range over the symbols in this InputFile.

Definition at line 188 of file LTO.h.


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