LLVM 20.0.0git
|
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 | |
~InputFile () | |
ArrayRef< Symbol > | symbols () const |
A range over the symbols in this InputFile. | |
StringRef | getCOFFLinkerOpts () const |
Returns linker options specified in the input file. | |
ArrayRef< StringRef > | getDependentLibraries () 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 |
BitcodeModule & | getSingleBitcodeModule () |
Static Public Member Functions | |
static Expected< std::unique_ptr< InputFile > > | create (MemoryBufferRef Object) |
Create an InputFile. | |
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.
|
default |
|
static |
Create an InputFile.
Definition at line 554 of file LTO.cpp.
References I, llvm::irsymtab::Symbol::isFormatSpecific(), llvm::irsymtab::Symbol::isGlobal(), llvm::object::readIRSymtab(), Sym, and llvm::Expected< T >::takeError().
Referenced by llvm::ThinLTOCodeGenerator::addModule(), and llvm::LTOModule::createInputFile().
|
inline |
|
inline |
Returns dependent library specifiers from the input file.
Definition at line 174 of file LTO.h.
Referenced by llvm::LTOModule::getDependentLibrary(), and llvm::LTOModule::getDependentLibraryCount().
StringRef InputFile::getName | ( | ) | const |
Returns the path to the InputFile.
Definition at line 583 of file LTO.cpp.
Referenced by writeToResolutionFile().
BitcodeModule & InputFile::getSingleBitcodeModule | ( | ) |
|
inline |
|
inline |
A range over the symbols in this InputFile.
Definition at line 168 of file LTO.h.
Referenced by writeToResolutionFile().