From 61fcfd6f3d3c6cffd7e610abab83445b4cd1950d Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Wed, 7 Sep 2016 14:03:17 +0100 Subject: Begin Type_Info Missing stuff in records, procedures, and tuples --- src/main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 0b4c955d1..6099e10f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,6 +41,7 @@ i32 win32_exec_command_line_app(char *fmt, ...) { } +#if 0 #define INIT_TIMER() u64 start_time, end_time = 0, total_time = 0; start_time = gb_utc_time_now() #define PRINT_TIMER(section) do { \ u64 diff; \ @@ -54,6 +55,11 @@ i32 win32_exec_command_line_app(char *fmt, ...) { #define PRINT_ACCUMULATION() do { \ gb_printf_err("Total compilation time: %lld ms\n", total_time/1000); \ } while (0) +#else +#define INIT_TIMER() +#define PRINT_TIMER(section) +#define PRINT_ACCUMULATION() +#endif int main(int argc, char **argv) { @@ -117,8 +123,10 @@ int main(int argc, char **argv) { i32 exit_code = 0; + // For more passes arguments: http://llvm.org/docs/Passes.html exit_code = win32_exec_command_line_app( - "../misc/llvm-bin/opt %s -o %.*s.bc " + // "../misc/llvm-bin/opt %s -o %.*s.bc " + "opt %s -o %.*s.bc " "-memcpyopt " "-mem2reg " "-die -dse " @@ -144,7 +152,7 @@ int main(int argc, char **argv) { } exit_code = win32_exec_command_line_app( - "clang %.*s.bc -o %.*s.o " + "clang %.*s.bc -o %.*s.exe " "-O0 " "-Wno-override-module " "%s", -- cgit v1.2.3