aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-12 12:14:10 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:03 -0700
commit6c90fbe3f50ada4e3c1521c20d842ebd99db5741 (patch)
tree32d05f2b0aedb02678d386ffcada1f948e296b34 /example.c
parentStart looking at asms in code generation. (diff)
downloadsparse-6c90fbe3f50ada4e3c1521c20d842ebd99db5741.tar.gz
sparse-6c90fbe3f50ada4e3c1521c20d842ebd99db5741.tar.bz2
sparse-6c90fbe3f50ada4e3c1521c20d842ebd99db5741.zip
Show asm inputs/outputs as bugus instructions as opposed to comments.
They otherwise get drowned out by the _real_ comments.
Diffstat (limited to 'example.c')
-rw-r--r--example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example.c b/example.c
index 24af275..2a15700 100644
--- a/example.c
+++ b/example.c
@@ -842,7 +842,7 @@ static void generate_asm_inputs(struct bb_state *state, struct asm_constraint_li
const char *constraint = entry->constraint;
pseudo_t pseudo = entry->pseudo;
- output_comment(state, "\"%s\": %s", constraint, show_pseudo(pseudo));
+ output_insn(state, "# asm input \"%s\": %s", constraint, show_pseudo(pseudo));
} END_FOR_EACH_PTR(entry);
}
@@ -857,7 +857,7 @@ static void generate_asm_outputs(struct bb_state *state, struct asm_constraint_l
while (*constraint == '=' || *constraint == '+')
constraint++;
- output_comment(state, "\"%s\": %s", constraint, show_pseudo(pseudo));
+ output_insn(state, "# asm output \"%s\": %s", constraint, show_pseudo(pseudo));
} END_FOR_EACH_PTR(entry);
}