The ThinLTOCodeGenerator is not intended to be reuse for multiple compilation: the model is that the client adds modules to the generator and ask to perform the ThinLTO optimizations / codegen, and finally destroys the codegenerator.
\since LTO_API_VERSION=18
Instantiates a ThinLTO code generator. Returns NULL on error (check lto_get_error_message() for details).