summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beemitter.c
diff options
context:
space:
mode:
authorMatthias Braun <matthias.braun@kit.edu>2012-06-06 11:12:46 +0200
committerMatthias Braun <matthias.braun@kit.edu>2012-06-06 12:41:03 +0200
commit79adebd5f38d1e70a802150318da81bb3299de3a (patch)
tree04430d9b57d944113dc0c6c67f137d2476e7ad6b /ir/be/beemitter.c
parent381cf8f2c9b564356058b2390567e3bc1602131d (diff)
be: introduce verboseasm flag (enabled by default)
Also factor out code that emits the label and comment at the beginning of a basic block.
Diffstat (limited to 'ir/be/beemitter.c')
-rw-r--r--ir/be/beemitter.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ir/be/beemitter.c b/ir/be/beemitter.c
index 1b2249e..a08461d 100644
--- a/ir/be/beemitter.c
+++ b/ir/be/beemitter.c
@@ -26,6 +26,7 @@
#include "config.h"
#include "beemitter.h"
+#include "be_t.h"
#include "irnode_t.h"
#include "irprintf.h"
#include "ident.h"
@@ -80,10 +81,10 @@ void be_emit_pad_comment(void)
void be_emit_finish_line_gas(const ir_node *node)
{
- dbg_info *dbg;
- src_loc_t loc;
+ dbg_info *dbg;
+ src_loc_t loc;
- if (node == NULL) {
+ if (node == NULL || !be_options.verbose_asm) {
be_emit_char('\n');
be_emit_write_line();
return;