Merge pull request #3896 from Vexu/translate-c-2

Translate-c self-hosted var decl and remove translate mode
This commit is contained in:
Andrew Kelley
2019-12-13 15:48:10 -05:00
committed by GitHub
13 changed files with 492 additions and 213 deletions

View File

@@ -23303,7 +23303,7 @@ static IrInstruction *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstruct
const char *resources_path = buf_ptr(ira->codegen->zig_c_headers_dir);
if ((err = parse_h_file(ira->codegen, &root_node, &errors_ptr, &errors_len,
&clang_argv.at(0), &clang_argv.last(), Stage2TranslateModeImport, resources_path)))
&clang_argv.at(0), &clang_argv.last(), TranslateModeImport, resources_path)))
{
if (err != ErrorCCompileErrors) {
ir_add_error_node(ira, node, buf_sprintf("C import failed: %s", err_str(err)));