mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
Error properly on strings.
Don't print junk when we don't have 'b' for a string.
This commit is contained in:
parent
542d89bcd5
commit
b65a6892dd
@ -559,6 +559,8 @@ emitdat(Dat *d, FILE *f)
|
|||||||
}
|
}
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
|
if (d->isstr)
|
||||||
|
err("strings only supported for 'b' currently");
|
||||||
if (d->isref)
|
if (d->isref)
|
||||||
fprintf(f, "%s %s+%"PRId64"\n", dtoa[d->type], d->u.ref.nam, d->u.ref.off);
|
fprintf(f, "%s %s+%"PRId64"\n", dtoa[d->type], d->u.ref.nam, d->u.ref.off);
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user