diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-11 20:54:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-11 20:54:39 -0400 |
| commit | 7e9f25dd18b7da750e547de94a779e3c14c07d94 (patch) | |
| tree | fe246e3b6b94e35f2f1dde9d228640ee0c1a7e0b /src/codegen.cpp | |
| parent | 04dc5cdacaa953ca5365245f32158db70213b90e (diff) | |
| download | zig-7e9f25dd18b7da750e547de94a779e3c14c07d94.tar.gz zig-7e9f25dd18b7da750e547de94a779e3c14c07d94.zip | |
stage1: clean up timing report in test mode
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index af42f324b4..96e979f9d3 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -6388,9 +6388,9 @@ static void do_code_gen(CodeGen *g) { char *error = nullptr; LLVMVerifyModule(g->module, LLVMAbortProcessAction, &error); #endif +} - codegen_add_time_event(g, "LLVM Emit Output"); - +static void zig_llvm_emit_output(CodeGen *g) { bool is_small = g->build_mode == BuildModeSmallRelease; Buf *output_path = &g->o_file_output_path; @@ -8228,6 +8228,9 @@ void codegen_build_and_link(CodeGen *g) { codegen_add_time_event(g, "Code Generation"); do_code_gen(g); + codegen_add_time_event(g, "LLVM Emit Output"); + zig_llvm_emit_output(g); + if (g->want_h_file) { codegen_add_time_event(g, "Generate .h"); gen_h_file(g); |
