summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beemithlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-12-03 13:26:11 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-12-05 09:03:27 +0100
commitfd31f273ab28fe069820994fd77f8330d9413b4e (patch)
tree0692c1b4facfa1def627d1f3f97b9bb1907c222d /ir/be/beemithlp.c
parent1f84e52aef7242fc4768590b7652688183f2d005 (diff)
be: Print the "assigned" register of be_Unknown.
Diffstat (limited to 'ir/be/beemithlp.c')
-rw-r--r--ir/be/beemithlp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/be/beemithlp.c b/ir/be/beemithlp.c
index 135b84d..f5efdb0 100644
--- a/ir/be/beemithlp.c
+++ b/ir/be/beemithlp.c
@@ -10,6 +10,7 @@
*/
#include "beemithlp.h"
+#include "bearch.h"
#include "bedwarf.h"
#include "beemitter.h"
#include "be_t.h"
@@ -26,7 +27,8 @@
static void be_emit_unknown(ir_node const *const node)
{
if (be_options.verbose_asm) {
- be_emit_string("\t/* unknown */");
+ arch_register_t const *const reg = arch_get_irn_register_out(node, 0);
+ be_emit_irprintf("\t/* unknown in %s */", reg->name);
be_emit_finish_line_gas(node);
}
}