X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeemitter.c;h=c02a1e442d20b4cacb1e31a2d7799f1ce4acfb91;hb=566be3ad2c354425664c7b637aa09e7143bfea1c;hp=62381f0a93606adf679ecca1357f41e26f19c313;hpb=b70eb7b76bac3ee3e8c8b9c1789f97e0dc2c8023;p=libfirm diff --git a/ir/be/beemitter.c b/ir/be/beemitter.c index 62381f0a9..c02a1e442 100644 --- a/ir/be/beemitter.c +++ b/ir/be/beemitter.c @@ -27,6 +27,7 @@ #include "config.h" #include "beemitter.h" +#include "irnode_t.h" #include "irprintf.h" #include "ident.h" #include "tv.h" @@ -54,7 +55,7 @@ void be_emit_ident(ident *id) be_emit_string_len(str, len); } -void be_emit_tarval(tarval *tv) +void be_emit_tarval(ir_tarval *tv) { char buf[64]; @@ -82,7 +83,7 @@ void be_emit_irprintf(const char *fmt, ...) void be_emit_write_line(void) { size_t len = obstack_object_size(&emit_obst); - char *line = obstack_finish(&emit_obst); + char *line = (char*)obstack_finish(&emit_obst); fwrite(line, 1, len, emit_file); obstack_free(&emit_obst, line); @@ -103,7 +104,7 @@ void be_emit_finish_line_gas(const ir_node *node) const char *sourcefile; unsigned lineno; - if(node == NULL) { + if (node == NULL) { be_emit_char('\n'); be_emit_write_line(); return; @@ -115,7 +116,7 @@ void be_emit_finish_line_gas(const ir_node *node) dbg = get_irn_dbg_info(node); sourcefile = ir_retrieve_dbg_info(dbg, &lineno); - if(sourcefile != NULL) { + if (sourcefile != NULL) { be_emit_string(sourcefile); be_emit_irprintf(":%u", lineno); }