![]() |
Spicy
|
#include <linker.h>
Public Member Functions | |
Linker (CodeGen *cg) | |
void | add (const linker::MetaData &md) |
void | finalize () |
Result< cxx::Unit > | linkerUnit () |
HILTI's linker.
It's not really a linker, it's a component that adds additional C++ code requires knowledge across all compilation units. That knowledge is included with each compiled C++ code unit as JSON data inside comments. The linker extracts all this information and then generates an additional C++ code unit with corresponding globa code.