diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-20 14:45:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-20 14:45:40 -0700 |
| commit | f3147de7a28767a27406355fd2d93d1bbcec9437 (patch) | |
| tree | 3fa1ffc2140e0781959e5f25753beb9c958fad35 /src/main.zig | |
| parent | b9d3527e0ed53c4796ab64b4df7daf0909739807 (diff) | |
| download | zig-f3147de7a28767a27406355fd2d93d1bbcec9437.tar.gz zig-f3147de7a28767a27406355fd2d93d1bbcec9437.zip | |
stage2: extract ZIR printing code into print_zir.zig
also implement textual printing of the ZIR instruction `atomic_rmw`.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index b7b5d06264..74bf45b62c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4132,7 +4132,7 @@ pub fn cmdAstCheck( // zig fmt: on } - return Zir.renderAsTextToFile(gpa, &file, io.getStdOut()); + return @import("print_zir.zig").renderAsTextToFile(gpa, &file, io.getStdOut()); } /// This is only enabled for debug builds. |
