class InputFile

Declaration

class InputFile { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/LTO/LTO.h:105

Member Variables

private std::vector<BitcodeModule> Mods
private SmallVector<char, 0> Strtab
private std::vector<Symbol> Symbols
private std::vector<std::pair<size_t, size_t>> ModuleSymIndices
private llvm::StringRef TargetTriple
private llvm::StringRef SourceFileName
private llvm::StringRef COFFLinkerOpts
private std::vector<StringRef> DependentLibraries
private std::vector< std::pair<StringRef, Comdat::SelectionKind>> ComdatTable

Method Overview

Methods

InputFile()

Declared at: llvm/include/llvm/LTO/LTO.h:112

static Expected<std::unique_ptr<InputFile>>
create(llvm::MemoryBufferRef Object)

Description

Create an InputFile.

Declared at: llvm/include/llvm/LTO/LTO.h:129

Parameters

llvm::MemoryBufferRef Object

llvm::StringRef getCOFFLinkerOpts() const

Description

Returns linker options specified in the input file.

Declared at: llvm/include/llvm/LTO/LTO.h:161

ArrayRef<
    std::pair<StringRef, Comdat::SelectionKind>>
getComdatTable() const

Declared at: llvm/include/llvm/LTO/LTO.h:176

ArrayRef<llvm::StringRef> getDependentLibraries()
    const

Description

Returns dependent library specifiers from the input file.

Declared at: llvm/include/llvm/LTO/LTO.h:164

llvm::StringRef getName() const

Description

Returns the path to the InputFile.

Declared at: llvm/include/llvm/LTO/LTO.h:167

llvm::BitcodeModule& getSingleBitcodeModule()

Declared at: llvm/include/llvm/LTO/LTO.h:181

llvm::StringRef getSourceFileName() const

Description

Returns the source file path specified at compile time.

Declared at: llvm/include/llvm/LTO/LTO.h:173

llvm::StringRef getTargetTriple() const

Description

Returns the input file's target triple.

Declared at: llvm/include/llvm/LTO/LTO.h:170

ArrayRef<llvm::lto::InputFile::Symbol>
module_symbols(unsigned int I) const

Declared at: llvm/include/llvm/LTO/LTO.h:184

Parameters

unsigned int I

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

Description

A range over the symbols in this InputFile.

Declared at: llvm/include/llvm/LTO/LTO.h:158

~InputFile()

Declared at: llvm/include/llvm/LTO/LTO.h:126