LLVM 23.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 isMemberOfArchive () const
void memberOfArchive (bool MA)
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 114 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

◆ getArchivePath()

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

Definition at line 221 of file LTO.h.

◆ getCOFFLinkerOpts()

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

Returns linker options specified in the input file.

Definition at line 183 of file LTO.h.

◆ getComdatTable()

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

Definition at line 198 of file LTO.h.

◆ getDependentLibraries()

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

Returns dependent library specifiers from the input file.

Definition at line 186 of file LTO.h.

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

◆ getFileBuffer()

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

Definition at line 207 of file LTO.h.

◆ getMemberName()

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

Definition at line 222 of file LTO.h.

◆ getName()

StringRef InputFile::getName ( ) const

Returns the path to the InputFile.

Definition at line 605 of file LTO.cpp.

◆ getPrimaryBitcodeModule()

BitcodeModule & InputFile::getPrimaryBitcodeModule ( )

Definition at line 614 of file LTO.cpp.

◆ getSingleBitcodeModule()

BitcodeModule & InputFile::getSingleBitcodeModule ( )

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

◆ getTargetTriple()

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

Returns the input file's target triple.

Definition at line 192 of file LTO.h.

◆ isMemberOfArchive()

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

Definition at line 209 of file LTO.h.

◆ isThinLTO()

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

Definition at line 214 of file LTO.h.

◆ memberOfArchive()

void llvm::lto::InputFile::memberOfArchive ( bool MA)
inline

Definition at line 211 of file LTO.h.

◆ setArchivePathAndName()

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

Definition at line 217 of file LTO.h.

◆ symbols()

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

A range over the symbols in this InputFile.

Definition at line 180 of file LTO.h.


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