summaryrefslogtreecommitdiff
path: root/6/peep.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-09 10:18:26 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-09 10:18:26 -0700
commit95f4d0b36eb2d25889eed6ab48fb025d5b346b67 (patch)
treed5e206f2a9c6713c193911370958826928c91294 /6/peep.c
parent25d91f98a97df36e1da381b273219ceedf256a4d (diff)
downloadmc-95f4d0b36eb2d25889eed6ab48fb025d5b346b67.tar.gz
Style(9)-ify.
Diffstat (limited to '6/peep.c')
-rw-r--r--6/peep.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/6/peep.c b/6/peep.c
index e4aeb9c..8cb5734 100644
--- a/6/peep.c
+++ b/6/peep.c
@@ -16,11 +16,12 @@
#include "asm.h"
-/* we sometimes leave dead code generated after
+/* we sometimes leave dead code generated after
* a non-conditional jump. This code scans for
- * the non-conditional exit from the BB, and truncates
+ * the non-conditional exit from the BB, and truncate
* at that point */
-static void deadcode(Isel *s, Asmbb *bb)
+static void
+deadcode(Isel *s, Asmbb *bb)
{
size_t i;
@@ -40,8 +41,9 @@ static void deadcode(Isel *s, Asmbb *bb)
* jmp .l1
* .l1:
* TODO: check for jumps over jumps.
- */
-static void nopjmp(Isel *s, Asmbb *bb, size_t idx)
+ */
+static void
+nopjmp(Isel *s, Asmbb *bb, size_t idx)
{
Insn *jmp;
Loc *targ;
@@ -79,7 +81,8 @@ static void nopjmp(Isel *s, Asmbb *bb, size_t idx)
}
}
-void peep(Isel *s)
+void
+peep(Isel *s)
{
size_t i;