if (!CurrentSection.empty())
O << CurrentSection << "\tends\n\n";
CurrentSection = NS;
- O << CurrentSection << "\tsegment 'CODE'\n";
+ if (!CurrentSection.empty())
+ O << CurrentSection << "\tsegment 'CODE'\n";
}
} else {
if (GV && GV->hasSection())
if (!CurrentSection.empty())
O << CurrentSection << "\tends\n\n";
CurrentSection = NS;
- O << CurrentSection << "\tsegment 'DATA'\n";
+ if (!CurrentSection.empty())
+ O << CurrentSection << "\tsegment 'DATA'\n";
}
} else {
if (GV && GV->hasSection())