Generate the fn pointers into the correct address space

Fixes #3645
This commit is contained in:
LemonBoy
2019-12-15 11:24:44 +01:00
committed by Andrew Kelley
parent 19ddbd9e9e
commit f1407b4b7e
4 changed files with 12 additions and 4 deletions

View File

@@ -156,6 +156,10 @@ unsigned ZigLLVMDataLayoutGetStackAlignment(LLVMTargetDataRef TD) {
return unwrap(TD)->getStackAlignment();
}
unsigned ZigLLVMDataLayoutGetProgramAddressSpace(LLVMTargetDataRef TD) {
return unwrap(TD)->getProgramAddressSpace();
}
bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMModuleRef module_ref,
const char *filename, ZigLLVM_EmitOutputType output_type, char **error_message, bool is_debug,
bool is_small, bool time_report)