aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-12 15:51:12 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-12 15:51:12 -0700
commitb8a1cb299eccce24410454d36ebc755dfd0293cd (patch)
tree8969d97b750abd41b10f23f0bc05a10f1d81c728 /src/all_types.hpp
parent9bf9be993791833f88bfbf049875dce50b64cd45 (diff)
downloadzig-b8a1cb299eccce24410454d36ebc755dfd0293cd.tar.gz
zig-b8a1cb299eccce24410454d36ebc755dfd0293cd.zip
avoid codegening functions never called from conditional compilation
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index d2d46534f3..adb9b34f95 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1207,6 +1207,9 @@ struct BlockContext {
LLVMZigDIScope *di_scope;
Buf *c_import_buf;
+
+ // if this is true, then this code will not be generated
+ bool codegen_excluded;
};