[MC] Simplify flushPendingLabels. NFC

This commit is contained in:
Fangrui Song
2023-05-05 12:12:45 -07:00
parent d9d06d11ca
commit 65493fd57a

View File

@@ -94,9 +94,6 @@ void MCSection::addPendingLabel(MCSymbol *label, unsigned Subsection) {
void MCSection::flushPendingLabels(MCFragment *F, uint64_t FOffset,
unsigned Subsection) {
if (PendingLabels.empty())
return;
// Set the fragment and fragment offset for all pending symbols in the
// specified Subsection, and remove those symbols from the pending list.
for (auto It = PendingLabels.begin(); It != PendingLabels.end(); ++It) {