LLVM  8.0.1
Classes | Public Member Functions | Static Public Member Functions | List of all members
llvm::lto::InputFile Class Reference

An input file. More...

#include "llvm/LTO/LTO.h"

Classes

class  Symbol
 The purpose of this class 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< Symbolsymbols () const
 A range over the symbols in this InputFile. More...
 
StringRef getCOFFLinkerOpts () const
 Returns linker options specified in the input file. More...
 
StringRef getName () const
 Returns the path to the InputFile. More...
 
StringRef getTargetTriple () const
 Returns the input file's target triple. More...
 
StringRef getSourceFileName () const
 Returns the source file path specified at compile time. More...
 
ArrayRef< StringRefgetComdatTable () const
 

Static Public Member Functions

static Expected< std::unique_ptr< InputFile > > create (MemoryBufferRef Object)
 Create an InputFile. More...
 

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

Constructor & Destructor Documentation

◆ ~InputFile()

InputFile::~InputFile ( )
default

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

References llvm::irsymtab::Symbol::getName().

◆ getComdatTable()

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

Definition at line 161 of file LTO.h.

References llvm::ArrayRef< T >::data(), and I.

◆ getName()

StringRef InputFile::getName ( ) const

Returns the path to the InputFile.

Definition at line 418 of file LTO.cpp.

References llvm::lto::createInProcessThinBackend(), and llvm::heavyweight_hardware_concurrency().

Referenced by writeToResolutionFile().

◆ getSourceFileName()

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

Returns the source file path specified at compile time.

Definition at line 158 of file LTO.h.

◆ getTargetTriple()

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

Returns the input file's target triple.

Definition at line 155 of file LTO.h.

◆ symbols()

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

A range over the symbols in this InputFile.

Definition at line 146 of file LTO.h.

Referenced by writeToResolutionFile().


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