Skip to content

Commit dae771d

Browse files
authored
rename WRcodlst to codeListPrint (dlang#23128)
1 parent 13720db commit dae771d

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

compiler/src/dmd/backend/arm/cod3.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ uint codout(int seg, code* c, Barray!ubyte* disasmBuf, ref targ_size_t framehand
23462346
* Debug code to dump code structure.
23472347
*/
23482348

2349-
void WRcodlst(code* c)
2349+
void codeListPrint(code* c)
23502350
{
23512351
for (; c; c = code_next(c))
23522352
code_print(c);

compiler/src/dmd/backend/cgsched.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void cgsched_block(block* b)
163163
scratch &= ~(b.Bregcon.used | b.Bregcon.params | cgstate.mfuncreg);
164164
scratch &= ~(b.Bregcon.immed.mval | b.Bregcon.cse.mval);
165165
cgsched_pentium(&b.Bcode,scratch);
166-
//printf("after schedule:\n"); WRcodlst(b.Bcode);
166+
//printf("after schedule:\n"); code_print_list(b.Bcode);
167167
}
168168
}
169169

compiler/src/dmd/backend/x86/cod2.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3297,7 +3297,7 @@ void cdind(ref CGstate cg, ref CodeBuilder cdb,elem* e,ref regm_t pretregs)
32973297

32983298
getlvalue(cg,cdb,cs,e,0,RM.load); // get addressing mode
32993299
//printf("Irex = %02x, Irm = x%02x, Isib = x%02x\n", cs.Irex, cs.Irm, cs.Isib);
3300-
//fprintf(stderr,"cd2 :\n"); WRcodlst(c);
3300+
//fprintf(stderr,"cd2 :\n"); codeListPrint(c);
33013301
if (pretregs == 0)
33023302
{
33033303
if (e.Ety & mTYvolatile) // do the load anyway
@@ -3528,7 +3528,7 @@ void cdind(ref CGstate cg, ref CodeBuilder cdb,elem* e,ref regm_t pretregs)
35283528
L3:
35293529
fixresult(cg,cdb,e,retregs,pretregs);
35303530
}
3531-
//fprintf(stderr,"cdafter :\n"); WRcodlst(c);
3531+
//fprintf(stderr,"cdafter :\n"); codeListPrint(c);
35323532
}
35333533

35343534

compiler/src/dmd/backend/x86/cod3.d

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8252,7 +8252,7 @@ private void do8bit(ref MiniCodeBuf pbuf, FL fl, ref evc uev)
82528252
* Debug code to dump code structure.
82538253
*/
82548254

8255-
void WRcodlst(code* c)
8255+
void codeListPrint(code* c)
82568256
{
82578257
for (; c; c = code_next(c))
82588258
code_print(c);
@@ -8261,8 +8261,7 @@ void WRcodlst(code* c)
82618261
@trusted
82628262
void code_print(scope code* c)
82638263
{
8264-
if (cgstate.AArch64)
8265-
return dmd.backend.arm.cod3.code_print(c);
8264+
debug assert(!cgstate.AArch64);
82668265

82678266
ubyte ins;
82688267
ubyte rexb;

0 commit comments

Comments
 (0)