llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
|
#include <tools/llir-ld/linker.h>
Classes | |
class | Unit |
A unit to link. More... | |
Public Types | |
using | Archive = std::list< Linker::Unit > |
Representation for an entire archive. | |
using | LinkResult = std::pair< std::unique_ptr< Prog >, std::vector< std::string > > |
Return the resulting program. | |
Public Member Functions | |
Linker (const llvm::Triple &triple, std::string_view output) | |
Initialise the linker. | |
llvm::Error | LinkUndefined (const std::string &symbol) |
Link an undefined symbol. | |
llvm::Error | LinkObject (Unit &&unit) |
Link an object, unconditionally. | |
llvm::Error | LinkGroup (std::list< Linker::Unit > &&units) |
Link a group of units. | |
llvm::Expected< LinkResult > | Link () |
Helper class to link object files and executables.