aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-04-21 17:24:58 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-04-25 00:06:54 -0400
commit976080462cf62f6f112d38176b99e5bb8a57bf37 (patch)
tree0172c0811fc360f49e3c0eeacbd58ece78a30764 /src/main.cpp
parent56e07622c692f70eb10836b86c5fda02c53e2394 (diff)
downloadzig-976080462cf62f6f112d38176b99e5bb8a57bf37.tar.gz
zig-976080462cf62f6f112d38176b99e5bb8a57bf37.zip
translate-c: a little closer to self-hosted implementation
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8cbc9b0d8c..2b65999e3b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1188,8 +1188,7 @@ int main(int argc, char **argv) {
zig_unreachable();
}
} else if (cmd == CmdTranslateC || cmd == CmdTranslateCUserland) {
- AstNode *root_node = codegen_translate_c(g, in_file_buf, cmd == CmdTranslateCUserland);
- ast_render(g, stdout, root_node, 4);
+ codegen_translate_c(g, in_file_buf, stdout, cmd == CmdTranslateCUserland);
if (timing_info)
codegen_print_timing_report(g, stderr);
return EXIT_SUCCESS;