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
- private InputFile()
- public static Expected<std::unique_ptr<InputFile>> create(llvm::MemoryBufferRef Object)
- public llvm::StringRef getCOFFLinkerOpts() const
- public ArrayRef<std::pair<StringRef, Comdat::SelectionKind>> getComdatTable() const
- public ArrayRef<llvm::StringRef> getDependentLibraries() const
- public llvm::StringRef getName() const
- public llvm::BitcodeModule & getSingleBitcodeModule()
- public llvm::StringRef getSourceFileName() const
- public llvm::StringRef getTargetTriple() const
- private ArrayRef<llvm::lto::InputFile::Symbol> module_symbols(unsigned int I) const
- public ArrayRef<llvm::lto::InputFile::Symbol> symbols() const
- public ~InputFile()
Methods
¶InputFile()
InputFile()
Declared at: llvm/include/llvm/LTO/LTO.h:112
¶static Expected<std::unique_ptr<InputFile>>
create(llvm::MemoryBufferRef Object)
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
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
ArrayRef<
std::pair<StringRef, Comdat::SelectionKind>>
getComdatTable() const
Declared at: llvm/include/llvm/LTO/LTO.h:176
¶ArrayRef<llvm::StringRef> getDependentLibraries()
const
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
llvm::StringRef getName() const
Description
Returns the path to the InputFile.
Declared at: llvm/include/llvm/LTO/LTO.h:167
¶llvm::BitcodeModule& getSingleBitcodeModule()
llvm::BitcodeModule& getSingleBitcodeModule()
Declared at: llvm/include/llvm/LTO/LTO.h:181
¶llvm::StringRef getSourceFileName() const
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
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
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
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()
~InputFile()
Declared at: llvm/include/llvm/LTO/LTO.h:126