llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Classes | Public Types | Public Member Functions | Friends | List of all members
Linker::Unit Class Reference

A unit to link. More...

#include <tools/llir-ld/linker.h>

Classes

struct  Data
 Create a unit for an arbitrary data file. More...
 
struct  Object
 Create a unit for an ELF object. More...
 

Public Types

enum  Kind { Kind::LLIR, Kind::BITCODE, Kind::OBJECT, Kind::DATA }
 Enumeration of objects to be linked. More...
 

Public Member Functions

 Unit (std::unique_ptr< Prog > &&prog)
 Create a unit for an LLIR program.
 
 Unit (std::unique_ptr< llvm::lto::InputFile > &&bitcode)
 Crete a unit for an LLVM bitcode object.
 
 Unit (const Object &object)
 
 Unit (const Data &data)
 
 Unit (Unit &&)
 Move constructor.
 
 ~Unit ()
 Destructor.
 
Unitoperator= (Unit &&)
 Move-assignment operator.
 

Friends

class Linker
 

Detailed Description

A unit to link.

Member Enumeration Documentation

◆ Kind

enum Linker::Unit::Kind
strong

Enumeration of objects to be linked.

Enumerator
LLIR 

LLIR program.

BITCODE 

LLVM bitcode.

OBJECT 

Regular object file.

DATA 

Arbitrary data.


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