summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-04-26 06:56:08 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-04-26 07:56:17 +0200
commitd0a9700ef62439b23f1fd67031547ddd797870ab (patch)
tree2b9354462a21cff52a3954d3c154c6d135554a19 /ir/be/beinfo.h
parent763ba23e178651a12d8b1cc181bd7712234c598b (diff)
be: Automatically set the original node name during code selection.
Now the original node name is set for all backends, not just ia32. Further, no code in the backends is needed. All new nodes, which are reachable from the returned transformed node and do not have a original node yet, automatically get assigned the original node.
Diffstat (limited to 'ir/be/beinfo.h')
-rw-r--r--ir/be/beinfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir/be/beinfo.h b/ir/be/beinfo.h
index 989d87f..5b3f0bc 100644
--- a/ir/be/beinfo.h
+++ b/ir/be/beinfo.h
@@ -38,6 +38,9 @@ struct backend_info_t {
const arch_register_req_t **in_reqs;
reg_out_info_t *out_infos;
arch_irn_flags_t flags;
+#ifndef NDEBUG
+ char const *orig_node;
+#endif
};
static inline backend_info_t *be_get_info(const ir_node *node)