mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
port to llvm 3.9
This commit is contained in:
1 parent
f18e34c2c6
commit
4e7effd3d3
8 files changed
+211
-117
No files matched your search
+1
-1
@@ -4847,7 +4847,7 @@ static void init(CodeGen *g, Buf *source_path) {
|
||||
g->target_machine = LLVMCreateTargetMachine(target_ref, buf_ptr(&g->triple_str),
|
||||
target_specific_cpu_args, target_specific_features, opt_level, reloc_mode, LLVMCodeModelDefault);
|
||||
|
||||
g->target_data_ref = LLVMGetTargetMachineData(g->target_machine);
|
||||
g->target_data_ref = LLVMCreateTargetDataLayout(g->target_machine);
|
||||
|
||||
char *layout_str = LLVMCopyStringRepOfTargetData(g->target_data_ref);
|
||||
LLVMSetDataLayout(g->module, layout_str);
|
||||
|
||||
Reference in new issue
Block a user