MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / codegen_allocator

Method codegen_allocator

crates/rustc_codegen_nvvm/src/lib.rs:273–282  ·  view source on GitHub ↗
(
        &self,
        tcx: TyCtxt<'tcx>,
        mods: &mut Self::Module,
        _module_name: &str,
        kind: rustc_ast::expand::allocator::AllocatorKind,
        has_alloc_error_handler: boo

Source from the content-addressed store, hash-verified

271 }
272
273 fn codegen_allocator<'tcx>(
274 &self,
275 tcx: TyCtxt<'tcx>,
276 mods: &mut Self::Module,
277 _module_name: &str,
278 kind: rustc_ast::expand::allocator::AllocatorKind,
279 has_alloc_error_handler: bool,
280 ) {
281 unsafe { allocator::codegen(tcx, mods, kind, has_alloc_error_handler) }
282 }
283
284 fn compile_codegen_unit(
285 &self,

Callers

nothing calls this directly

Calls 1

codegenFunction · 0.70

Tested by

no test coverage detected