summaryrefslogtreecommitdiff
path: root/6/peep.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-02-09 19:22:12 -0500
committerOri Bernstein <ori@eigenstate.org>2013-02-09 19:22:12 -0500
commitedea33eefb45d186ae3d5159223cec0ccb71ff1b (patch)
treeeca487d464f4f0a328c41f8620f9e164f9808bfc /6/peep.c
parenta13e33b5a6319fb5cc68983b731e6cff821bb458 (diff)
downloadmc-edea33eefb45d186ae3d5159223cec0ccb71ff1b.tar.gz
Rename functions.
Diffstat (limited to '6/peep.c')
-rw-r--r--6/peep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/6/peep.c b/6/peep.c
index b7cbcb5..12dda02 100644
--- a/6/peep.c
+++ b/6/peep.c
@@ -19,7 +19,7 @@
* a non-conditional jump. This code scans for
* the non-conditional exit from the BB, and truncates
* at that point */
-static void elimdead(Isel *s, Asmbb *bb)
+static void deadcode(Isel *s, Asmbb *bb)
{
size_t i;
@@ -38,7 +38,7 @@ static void elimdead(Isel *s, Asmbb *bb)
* .l1:
* TODO: check for jumps over jumps.
*/
-static void elimnopjmp(Isel *s, Asmbb *bb, size_t idx)
+static void nopjmp(Isel *s, Asmbb *bb, size_t idx)
{
Insn *jmp;
Loc *targ;
@@ -72,8 +72,8 @@ static void elimnopjmp(Isel *s, Asmbb *bb, size_t idx)
static void bbpeep(Isel *s, Asmbb *bb, size_t idx)
{
- elimdead(s, bb);
- elimnopjmp(s, bb, idx);
+ deadcode(s, bb);
+ nopjmp(s, bb, idx);
}
void peep(Isel *s)