compiler: Parse p- specs in datalayout string, allow definition of custom default data address space
This commit is contained in:
committed by
Edoardo Marangoni
parent
733b47ea4b
commit
93f1201c06
@@ -113,7 +113,7 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
|
||||
) -> ModuleLlvm {
|
||||
let module_llvm = ModuleLlvm::new_metadata(tcx, module_name);
|
||||
let cx =
|
||||
SimpleCx::new(module_llvm.llmod(), &module_llvm.llcx, tcx.data_layout.pointer_size);
|
||||
SimpleCx::new(module_llvm.llmod(), &module_llvm.llcx, tcx.data_layout.pointer_size());
|
||||
unsafe {
|
||||
allocator::codegen(tcx, cx, module_name, kind, alloc_error_handler_kind);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user