/* cc65 */
#include "asmcode.h"
-#include "codeopt.h"
#include "codeseg.h"
#include "dataseg.h"
#include "segments.h"
return;
}
- /* We can only delete the range if End is the end of the code segment or
- * if both SP values are identical.
- */
- CHECK (Start->SP == End->SP || End->Pos == CS_GetEntryCount (CS->Code));
-
/* Delete the range */
CS_DelCodeRange (CS->Code, Start->Pos, End->Pos-1);
}
SymTab = GetGlobalSymTab ();
Entry = SymTab->SymHead;
while (Entry) {
- if (IsTypeFunc (Entry->Type) &&
- SymIsDef (Entry) &&
- (Entry->Flags & (SC_REF | SC_EXTERN)) != 0) {
- /* Function which is defined and referenced or extern */
- CS_MergeLabels (Entry->V.F.Seg->Code);
- RunOpt (Entry->V.F.Seg->Code);
+ if (SymIsOutputFunc (Entry)) {
+ /* Function which is defined and referenced or extern */
OutputSegments (Entry->V.F.Seg);
}
Entry = Entry->NextSym;