aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2019-12-15 11:24:44 +0100
committerAndrew Kelley <andrew@ziglang.org>2019-12-15 14:42:53 -0500
commitf1407b4b7ebe33f00cc8222e875ce271716671ad (patch)
tree6de02da9460658c297e0de3322dc4b0b166719cb /src/zig_llvm.cpp
parent19ddbd9e9e691ff7ab8789e8c6962497fbba4b88 (diff)
downloadzig-f1407b4b7ebe33f00cc8222e875ce271716671ad.tar.gz
zig-f1407b4b7ebe33f00cc8222e875ce271716671ad.zip
Generate the fn pointers into the correct address space
Fixes #3645
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index 71d30e566c..852475c3c4 100644
--- a/src/zig_llvm.cpp
+++ b/src/zig_llvm.cpp
@@ -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)