projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use is_$KIND(n) instead of get_irn_op(n) == op_$KIND.
[libfirm]
/
ir
/
be
/
arm
/
arm_emitter.c
diff --git
a/ir/be/arm/arm_emitter.c
b/ir/be/arm/arm_emitter.c
index
c504abc
..
57add00
100644
(file)
--- a/
ir/be/arm/arm_emitter.c
+++ b/
ir/be/arm/arm_emitter.c
@@
-275,11
+275,21
@@
void arm_emitf(const ir_node *node, const char *format, ...)
be_emit_char('\t');
for (;;) {
const char *start = format;
be_emit_char('\t');
for (;;) {
const char *start = format;
- while (*format != '%' && *format != '\0')
+ while (*format != '%' && *format != '\
n' && *format != '\
0')
++format;
++format;
- be_emit_string_len(start, format-start);
+ be_emit_string_len(start, format - start);
+
if (*format == '\0')
break;
if (*format == '\0')
break;
+
+ if (*format == '\n') {
+ ++format;
+ be_emit_char('\n');
+ be_emit_write_line();
+ be_emit_char('\t');
+ continue;
+ }
+
++format;
switch (*format++) {
++format;
switch (*format++) {
@@
-375,15
+385,9
@@
void arm_emitf(const ir_node *node, const char *format, ...)
break;
}
break;
}
- case '\n':
- be_emit_char('\n');
- be_emit_write_line();
- be_emit_char('\t');
- break;
-
default:
unknown:
default:
unknown:
- panic("unknown format conversion
in arm_emitf()
");
+ panic("unknown format conversion");
}
}
va_end(ap);
}
}
va_end(ap);
@@
-619,12
+623,12
@@
static void emit_be_Copy(const ir_node *irn)
if (USE_FPA(isa)) {
arm_emitf(irn, "mvf %D0, %S0");
} else {
if (USE_FPA(isa)) {
arm_emitf(irn, "mvf %D0, %S0");
} else {
- panic("
emit_be_Copy:
move not supported for this mode");
+ panic("move not supported for this mode");
}
} else if (mode_is_data(mode)) {
arm_emitf(irn, "mov %D0, %S0");
} else {
}
} else if (mode_is_data(mode)) {
arm_emitf(irn, "mov %D0, %S0");
} else {
- panic("
emit_be_Copy:
move not supported for this mode");
+ panic("move not supported for this mode");
}
}
}
}