diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2018-12-23 17:36:41 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2018-12-23 17:36:41 -0500 |
| commit | 16b8467a5eb983d76d77b7a679af535c950e94b3 (patch) | |
| tree | bfcf7341ebcc72dbd31d6ed22a3de62d93e03e94 /src/codegen.cpp | |
| parent | c00216701c64269a2395e84f3ccff99d6fb89ffc (diff) | |
| download | zig-16b8467a5eb983d76d77b7a679af535c950e94b3.tar.gz zig-16b8467a5eb983d76d77b7a679af535c950e94b3.zip | |
llvm8: fix build errors
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index e37703d5f0..983bc923dc 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -643,18 +643,14 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) { unsigned line_number = (unsigned)(fn_table_entry->proto_node->line == 0) ? 0 : (fn_table_entry->proto_node->line + 1); unsigned scope_line = line_number; - bool is_definition = fn_table_entry->body_node != nullptr; unsigned flags = 0; - bool is_optimized = g->build_mode != BuildModeDebug; - bool is_internal_linkage = (fn_table_entry->body_node != nullptr && - fn_table_entry->export_list.length == 0); ZigLLVMDIScope *fn_di_scope = get_di_scope(g, scope->parent); assert(fn_di_scope != nullptr); ZigLLVMDISubprogram *subprogram = ZigLLVMCreateFunction(g->dbuilder, fn_di_scope, buf_ptr(&fn_table_entry->symbol_name), "", import->di_file, line_number, - fn_table_entry->type_entry->di_type, is_internal_linkage, - is_definition, scope_line, flags, is_optimized, nullptr); + fn_table_entry->type_entry->di_type, + scope_line, flags, nullptr); scope->di_scope = ZigLLVMSubprogramToScope(subprogram); ZigLLVMFnSetSubprogram(fn_llvm_value(g, fn_table_entry), subprogram); |
