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 ()
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 113 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 212 of file LTO.h.

◆ 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().

◆ getFileBuffer()

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

Definition at line 198 of file LTO.h.

◆ getMemberName()

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

Definition at line 213 of file LTO.h.

◆ getName()

StringRef InputFile::getName ( ) const

Returns the path to the InputFile.

Definition at line 600 of file LTO.cpp.

◆ getSingleBitcodeModule()

BitcodeModule & InputFile::getSingleBitcodeModule ( )

Definition at line 604 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.

◆ isMemberOfArchive()

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

Definition at line 200 of file LTO.h.

◆ isThinLTO()

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

Definition at line 205 of file LTO.h.

◆ memberOfArchive()

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

Definition at line 202 of file LTO.h.

◆ setArchivePathAndName()

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

Definition at line 208 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: