- ia32_emit_char(env, ')');
- }
-}
-
-#if 0
-/**
- * Formated print of commands and comments.
- */
-static void ia32_fprintf_format(FILE *F, const ir_node *irn, char *cmd_buf, char *cmnt_buf) {
- unsigned lineno;
- const char *name = irn ? be_retrieve_dbg_info(get_irn_dbg_info((ir_node *)irn), &lineno) : NULL;
-
- if (name)
- fprintf(F, "\t%-35s %-60s /* %s:%u */\n", cmd_buf, cmnt_buf, name, lineno);
- else
- fprintf(F, "\t%-35s %-60s\n", cmd_buf, cmnt_buf);
-}
-#endif
-
-void ia32_write_line(ia32_emit_env_t *env)
-{
- char *finished_line = obstack_finish(env->obst);
-
- fwrite(finished_line, env->linelength, 1, env->out);
- env->linelength = 0;
- obstack_free(env->obst, finished_line);
-}
-
-void ia32_pad_comment(ia32_emit_env_t *env)
-{
- while(env->linelength <= 30) {
- ia32_emit_char(env, ' ');
- }
- ia32_emit_cstring(env, " ");
-}
-
-void ia32_emit_finish_line(ia32_emit_env_t *env, const ir_node *node)
-{
- dbg_info *dbg;
- const char *sourcefile;
- unsigned lineno;
-
- if(node == NULL) {
- ia32_emit_char(env, '\n');
- ia32_write_line(env);
- return;
- }
-
- ia32_pad_comment(env);
- ia32_emit_cstring(env, "/* ");
- ia32_emit_irprintf(env, "%+F ", node);
-
- dbg = get_irn_dbg_info(node);
- sourcefile = be_retrieve_dbg_info(dbg, &lineno);
- if(sourcefile != NULL) {
- ia32_emit_string(env, sourcefile);
- ia32_emit_irprintf(env, ":%u", lineno);