git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238582
91177308-0d34-0410-b5e6-
96231b3b80d8
MCSection::iterator CurInsertionPoint;
bool EmitEHFrame;
bool EmitDebugFrame;
- SmallVector<MCSymbolData *, 2> PendingLabels;
+ SmallVector<MCSymbol *, 2> PendingLabels;
virtual void EmitInstToData(const MCInst &Inst, const MCSubtargetInfo&) = 0;
void EmitCFIStartProcImpl(MCDwarfFrameInfo &Frame) override;
CurSection->getFragmentList().insert(CurInsertionPoint, F);
F->setParent(CurSection);
}
- for (MCSymbolData *SD : PendingLabels) {
+ for (MCSymbol *Sym : PendingLabels) {
+ MCSymbolData *SD = &Sym->getData();
SD->setFragment(F);
SD->setOffset(FOffset);
}
SD.setFragment(F);
SD.setOffset(F->getContents().size());
} else {
- PendingLabels.push_back(&SD);
+ PendingLabels.push_back(Symbol);
}
}