&self,
ongoing_codegen: Box<dyn Any>,
sess: &Session,
+ outputs: &OutputFilenames,
) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported>;
/// This is called on the returned `Box<dyn Any>` from `join_codegen`
pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Send + Sync {
fn new_metadata(&self, sess: TyCtxt<'_>, mod_name: &str) -> Self::Module;
- fn write_compressed_metadata<'tcx>(
- &self,
- tcx: TyCtxt<'tcx>,
- metadata: &EncodedMetadata,
- llvm_module: &mut Self::Module,
- );
fn codegen_allocator<'tcx>(
&self,
tcx: TyCtxt<'tcx>,