Revert "Remove #[alloc_error_handler] from the compiler and library"
This reverts commit abc0660118
.
This commit is contained in:
parent
33253fa6a4
commit
f54dbe6e31
49 changed files with 842 additions and 22 deletions
|
@ -115,10 +115,11 @@ 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);
|
||||
allocator::codegen(tcx, &mut module_llvm, module_name, kind, alloc_error_handler_kind);
|
||||
}
|
||||
module_llvm
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue