ref: edea33eefb45d186ae3d5159223cec0ccb71ff1b
parent: a13e33b5a6319fb5cc68983b731e6cff821bb458
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Feb 9 14:22:12 EST 2013
Rename functions.
--- 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 @@
* .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 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)
--
⑨