Skip to content

Commit 299603a

Browse files
WalterBrightthewilsonator
authored andcommitted
drop symlist_t as CV4 and CVSYM are obsolete
1 parent 1bfff5e commit 299603a

5 files changed

Lines changed: 2 additions & 31 deletions

File tree

compiler/src/dmd/backend/cc.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ enum IDOHD = 4+1+int.sizeof*3; // max amount of overhead to ID added by
4646

4747
alias Funcsym = Symbol;
4848

49-
alias symlist_t = list_t;
5049
alias vec_t = size_t*;
5150
alias enum_TK = ubyte;
5251

@@ -439,7 +438,6 @@ enum
439438

440439
struct func_t
441440
{
442-
symlist_t Fsymtree; // local Symbol table
443441
block* Fstartblock; // list of blocks comprising function
444442
symtab_t Flocsym; // local Symbol table
445443
Srcpos Fstartline; // starting line # of function

compiler/src/dmd/backend/cgcv.d

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ import dmd.backend.type;
2525
nothrow:
2626
@safe:
2727

28-
alias symlist_t = LIST*;
29-
3028
public import dmd.backend.dcgcv : cv_init, cv_typidx, cv_outsym, cv_func, cv_term, cv4_struct,
3129
cv_stringbytes, cv4_numericbytes, cv4_storenumeric, cv4_signednumericbytes,
3230
cv4_storesignednumeric, cv_debtyp, cv_namestring, cv4_typidx, cv4_arglist, cv4_callconv,
@@ -51,7 +49,6 @@ struct debtyp_t
5149
struct Cgcv
5250
{
5351
uint signature;
54-
symlist_t list; // deferred list of symbols to output
5552
idx_t deb_offset; // offset added to type index
5653
uint sz_idx; // size of stored type index
5754
int LCFDoffset;

compiler/src/dmd/backend/dcgcv.d

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,6 @@ static if (1)
17671767
length = 2 + 2 + cgcv.sz_idx;
17681768
length += cv_namestring(debsym + length,id);
17691769
TOWORD(debsym,length - 2);
1770-
list_subtract(&cgcv.list,s);
17711770
break;
17721771

17731772
case SC.const_:
@@ -1793,16 +1792,6 @@ Lret:
17931792
free(debsym);
17941793
}
17951794

1796-
/******************************************
1797-
* Write out any deferred symbols.
1798-
*/
1799-
1800-
@trusted
1801-
private void cv_outlist()
1802-
{
1803-
while (cgcv.list)
1804-
cv_outsym(cast(Symbol*) list_pop(&cgcv.list));
1805-
}
18061795

18071796
/******************************************
18081797
* Write out symbol table for current function.
@@ -2038,8 +2027,6 @@ private void cv4_func(Funcsym* s, ref symtab_t symtab)
20382027

20392028
objmod.write_bytes(SegData[DEBSYM],endproc[]);
20402029
}
2041-
2042-
cv_outlist();
20432030
}
20442031

20452032
//////////////////////////////////////////////////////////
@@ -2059,8 +2046,8 @@ void cv_term()
20592046
{
20602047
case CV4:
20612048
case CVSYM:
2062-
cv_outlist();
2063-
goto case;
2049+
assert(0); // obsolete
2050+
20642051
case CV8:
20652052
objmod.write_bytes(SegData[typeseg],(&cgcv.signature)[0 .. 1]);
20662053
if (debtyp.length != 1 || config.fulltypes == CV8)

compiler/src/dmd/backend/dwarfdbginf.d

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,15 +2228,6 @@ static if (1)
22282228
}
22292229

22302230

2231-
/******************************************
2232-
* Write out any deferred symbols.
2233-
*/
2234-
static if (0)
2235-
void cv_outlist()
2236-
{
2237-
}
2238-
2239-
22402231
/* =================== Cached Types in debug_info ================= */
22412232

22422233
ubyte dwarf_classify_struct(uint sflags)
@@ -3026,7 +3017,6 @@ static if (1)
30263017
enum_t* se = s.Senum;
30273018
type* tbase2 = s.Stype.Tnext;
30283019
uint sz = cast(uint)type_size(tbase2);
3029-
symlist_t sl;
30303020

30313021
if (s.Stypidx)
30323022
return s.Stypidx;

compiler/src/dmd/backend/symbol.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ debug
505505
freesymtab(f.Flocsym[].ptr,0,f.Flocsym.length);
506506

507507
f.Flocsym.dtor();
508-
list_free(&f.Fsymtree,cast(list_free_fp)&symbol_free);
509508
f.typesTable.dtor();
510509
func_free(f);
511510
}

0 commit comments

Comments
 (0)