summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonas Haag <jonas@lophus.org>2016-01-31 23:25:14 +0100
committerPhilipp Serrer <philipp@serrer.de>2018-01-18 18:11:08 +0100
commit59c9c5afef50d0a47b3e65331b66576ea6d5a6f3 (patch)
tree6c824ea2195bdf9d1be43194620be2c8b7e67522
parent6440d4c85e0782efc11385269b514d6ef50e59ff (diff)
bedwarf: Emit register name instead of DWARF number
-rw-r--r--ir/be/bedwarf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/bedwarf.c b/ir/be/bedwarf.c
index c2cbf67..f2f36bc 100644
--- a/ir/be/bedwarf.c
+++ b/ir/be/bedwarf.c
@@ -326,7 +326,7 @@ void be_dwarf_callframe_register(const arch_register_t *reg)
{
if (should_emit_frameinfo()) {
be_emit_cstring("\t.cfi_def_cfa_register ");
- be_emit_irprintf("%d\n", reg->dwarf_number);
+ be_emit_irprintf("%%%s\n", reg->name);
be_emit_write_line();
}
}
@@ -344,7 +344,7 @@ void be_dwarf_callframe_spilloffset(const arch_register_t *reg, int offset)
{
if (should_emit_frameinfo()) {
be_emit_cstring("\t.cfi_offset ");
- be_emit_irprintf("%d, %d\n", reg->dwarf_number, offset);
+ be_emit_irprintf("%%%s, %d\n", reg->name, offset);
be_emit_write_line();
}
}