summaryrefslogtreecommitdiff
path: root/includes/compiler/DumpIR.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-26 11:30:47 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-26 11:30:47 +0000
commit094b96ca1df4a035b5f93c351f773306c0241f3f (patch)
tree95ce05e3ebe816c7ee7996206bb37ea17d8ca33c /includes/compiler/DumpIR.h
parentfc0c4c0df7b583b55a08317cf1ef6a71d27c0440 (diff)
downloadMWCC-094b96ca1df4a035b5f93c351f773306c0241f3f.tar.gz
MWCC-094b96ca1df4a035b5f93c351f773306c0241f3f.zip
move lots of source files around to match their actual placement in the original treemain
Diffstat (limited to 'includes/compiler/DumpIR.h')
-rw-r--r--includes/compiler/DumpIR.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/includes/compiler/DumpIR.h b/includes/compiler/DumpIR.h
new file mode 100644
index 0000000..d39513c
--- /dev/null
+++ b/includes/compiler/DumpIR.h
@@ -0,0 +1,14 @@
+#ifndef COMPILER_UDUMP_H
+#define COMPILER_UDUMP_H
+
+#include "compiler/common.h"
+
+extern void SetupDumpIR(void);
+extern void CleanupDumpIR(void);
+extern void DumpIR(Statement *statements, Object *func);
+extern void DumpExpression(ENode *expr, int indent);
+extern void DumpSwitch(SwitchInfo *info);
+extern void DumpType(Type *type);
+extern void DumpStack(ExceptionAction *act);
+
+#endif