authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-26 12:18:13-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-26 12:18:13-04:00
log8efb3f5e197edf2debebf0557c74fef2541cc117
tree93fa03300c5442cfb17db9dd99c64975ca71f734
parent1f96a866769423e363f1c48654c0f51ecf75db58

update to latest LLVM API


2 files changed, 2 insertions(+), 3 deletions(-)

src/translate_c.cpp+1-2
......@@ -4658,7 +4658,6 @@ int parse_h_file(ImportTableEntry *import, ZigList<ErrorMsg *> *errors, const ch
46584658
46594659 std::shared_ptr<PCHContainerOperations> pch_container_ops = std::make_shared<PCHContainerOperations>();
46604660
4661 bool skip_function_bodies = false;
46624661 bool only_local_decls = true;
46634662 bool capture_diagnostics = true;
46644663 bool user_files_are_volatile = true;
......@@ -4671,7 +4670,7 @@ int parse_h_file(ImportTableEntry *import, ZigList<ErrorMsg *> *errors, const ch
46714670 &clang_argv.at(0), &clang_argv.last(),
46724671 pch_container_ops, diags, resources_path,
46734672 only_local_decls, capture_diagnostics, None, true, 0, TU_Complete,
4674 false, false, allow_pch_with_compiler_errors, skip_function_bodies,
4673 false, false, allow_pch_with_compiler_errors, SkipFunctionBodiesScope::None,
46754674 single_file_parse, user_files_are_volatile, for_serialization, None, &err_unit,
46764675 nullptr));
46774676
src/zig_llvm.cpp+1-1
......@@ -162,7 +162,7 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM
162162 abort();
163163 }
164164
165 if (target_machine->addPassesToEmitFile(MPM, dest, ft)) {
165 if (target_machine->addPassesToEmitFile(MPM, dest, nullptr, ft)) {
166166 *error_message = strdup("TargetMachine can't emit a file of this type");
167167 return true;
168168 }