Remove #[alloc_error_handler] from the compiler and library
This commit is contained in:
parent
c9a6e41026
commit
abc0660118
49 changed files with 22 additions and 842 deletions
|
@ -162,11 +162,11 @@ impl CodegenBackend for GccCodegenBackend {
|
|||
}
|
||||
|
||||
impl ExtraBackendMethods for GccCodegenBackend {
|
||||
fn codegen_allocator<'tcx>(&self, tcx: TyCtxt<'tcx>, module_name: &str, kind: AllocatorKind, alloc_error_handler_kind: AllocatorKind) -> Self::Module {
|
||||
fn codegen_allocator<'tcx>(&self, tcx: TyCtxt<'tcx>, module_name: &str, kind: AllocatorKind) -> Self::Module {
|
||||
let mut mods = GccContext {
|
||||
context: Context::default(),
|
||||
};
|
||||
unsafe { allocator::codegen(tcx, &mut mods, module_name, kind, alloc_error_handler_kind); }
|
||||
unsafe { allocator::codegen(tcx, &mut mods, module_name, kind); }
|
||||
mods
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue