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
|
@ -115,11 +115,10 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
|
|||
tcx: TyCtxt<'tcx>,
|
||||
module_name: &str,
|
||||
kind: AllocatorKind,
|
||||
alloc_error_handler_kind: AllocatorKind,
|
||||
) -> ModuleLlvm {
|
||||
let mut module_llvm = ModuleLlvm::new_metadata(tcx, module_name);
|
||||
unsafe {
|
||||
allocator::codegen(tcx, &mut module_llvm, module_name, kind, alloc_error_handler_kind);
|
||||
allocator::codegen(tcx, &mut module_llvm, module_name, kind);
|
||||
}
|
||||
module_llvm
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue