git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1711
4a8a32a2-be11-0410-ad9d-
d568d2c75423
addSet (&segment->syms, sym);
}
addSet (&segment->syms, sym);
}
+/*-----------------------------------------------------------------*/
+/* deleteFromSeg - deletes a symbol from segment used when a var */
+/* firest declared as "extern" then no extern */
+/*-----------------------------------------------------------------*/
+void deleteFromSeg(symbol *sym)
+{
+ if (SPEC_OCLS(sym->etype)) {
+ memmap *segment = SPEC_OCLS (sym->etype);
+ deleteSetItem(&segment->syms,sym);
+ }
+}
+
+
/*-----------------------------------------------------------------*/
/* allocGlobal - assigns the output segment to a global var */
/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/
/* allocGlobal - assigns the output segment to a global var */
/*-----------------------------------------------------------------*/
void redoStackOffsets ();
void printAllocInfo (struct symbol *, FILE *);
void doOverlays (struct eBBlock **, int count);
void redoStackOffsets ();
void printAllocInfo (struct symbol *, FILE *);
void doOverlays (struct eBBlock **, int count);
+void deleteFromSeg(struct symbol *);