Skip to content

Commit

Permalink
Merge pull request #4761 from WalterBright/rmSOURCE
Browse files Browse the repository at this point in the history
backend: remove SOURCE_OFFSETS, SOURCE_4SYMS, SOURCE_4PARAMS
  • Loading branch information
9rnsr committed Jun 23, 2015
2 parents b9864b4 + 6a543b9 commit 24f6c07
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 25 deletions.
10 changes: 0 additions & 10 deletions src/backend/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ typedef struct Srcpos
#if M_UNIX
short Sfilnum; // file number
#endif
#if SOURCE_OFFSETS
unsigned long Sfiloff; // byte offset
#endif

void print(const char *func);
} Srcpos;
Expand Down Expand Up @@ -1297,10 +1294,6 @@ struct Symbol
}_SXR;
regm_t Sregsaved; // mask of registers not affected by this func

#if SOURCE_4SYMS
Srcpos Ssrcpos; // file position for definition
#endif

char Sident[SYM_PREDEF_SZ]; // identifier string (dynamic array)
// (the size is for static Symbols)

Expand Down Expand Up @@ -1387,9 +1380,6 @@ struct PARAM
PARAM *Pnext; // next in list
unsigned Pflags;
#define PFexplicit 1 // this template argument was explicit, i.e. in < >
#if SOURCE_4PARAMS
Srcpos Psrcpos; // parameter source definition
#endif

PARAM *createTal(PARAM *); // create template-argument-list blank from
// template-parameter-list
Expand Down
3 changes: 0 additions & 3 deletions src/backend/out.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,9 +1483,6 @@ void Srcpos::print(const char *func)
printf("Sfilptr = %p (filename = %s)", sf, sf ? sf->SFname : "null");
#endif
printf(", Slinnum = %u", Slinnum);
#if SOURCE_OFFSETS
printf(", Sfiloff = %d", Sfiloff);
#endif
printf(")\n");
}

Expand Down
3 changes: 0 additions & 3 deletions src/backend/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,9 +1210,6 @@ symbol *symbol_hydrate(symbol **ps)
symbol_debug(s);
if (!isdehydrated(s->Stype)) // if this symbol is already dehydrated
return s; // no need to do it again
#if SOURCE_4SYMS
s->Ssrcpos.Sfilnum += File_Hydrate_Num; /* file number relative header build */
#endif
if (pstate.SThflag != FLAG_INPLACE && s->Sfl != FLreg)
s->Sxtrnnum = 0; // not written to .OBJ file yet
type_hydrate(&s->Stype);
Expand Down
6 changes: 0 additions & 6 deletions src/backend/type.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,9 +1477,6 @@ symbol *param_search(const char *name, param_t **pp)
s->Sclass = SCparameter;
s->Stype = p->Ptype;
s->Stype->Tcount++;
#if SOURCE_4PARAMS
s->Ssrcpos = p->Psrcpos;
#endif
p->Psym = s;
}
}
Expand All @@ -1500,9 +1497,6 @@ void param_hydrate(param_t **pp)
{ while (*pp)
{ assert(isdehydrated(*pp));
p = (param_t *) ph_hydrate(pp);
#if SOURCE_4PARAMS
p->Psrcpos.Sfilnum += File_Hydrate_Num; /* file number relative header build */
#endif
param_debug(p);

type_hydrate(&p->Ptype);
Expand Down
3 changes: 0 additions & 3 deletions src/backend/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ struct TYPE
#if 0
unsigned short Tstabidx; // Index into stab types
#endif
#if SOURCE_4TYPES
Srcpos Tsrcpos; /* position of type definition */
#endif
#if HTOD
Symbol *Ttypedef; // if this type came from a typedef, this is
// the typedef symbol
Expand Down

0 comments on commit 24f6c07

Please sign in to comment.