summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2017-01-22 13:18:31 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2017-01-22 16:17:35 +0100
commitb7500faa6501beeeaa7423e877b83d8152ccff7f (patch)
tree2e55e976b55ea9d16f861b2ee0a818433affbb38 /ir/common
parent720c64ba76411b038713bba6497102e09e9a9daa (diff)
panic: Also print the name of the function in TODO.
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/panic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/common/panic.h b/ir/common/panic.h
index 0bc8c91..9dd8b9e 100644
--- a/ir/common/panic.h
+++ b/ir/common/panic.h
@@ -21,6 +21,6 @@ FIRM_NORETURN print_panic(char const *file, int line, char const *func,
#define panic(...) print_panic(__FILE__, __LINE__, __func__, __VA_ARGS__)
-#define TODO(node) panic("%+F: TODO", node)
+#define TODO(node) panic("%+F in function '%F': TODO", node, get_irn_irg(node))
# endif