virtual void EmitCFIStartProcImpl(MCDwarfFrameInfo &Frame);
void RecordProcEnd(MCDwarfFrameInfo &Frame);
virtual void EmitCFIEndProcImpl(MCDwarfFrameInfo &CurFrame);
- void EmitFrames(MCAsmBackend *MAB, bool usingCFI);
+ void EmitFrames(MCAsmBackend *MAB);
MCWin64EHUnwindInfo *getCurrentW64UnwindInfo() {
return CurrentW64UnwindInfo;
}
void MCELFStreamer::FinishImpl() {
- EmitFrames(nullptr, true);
+ EmitFrames(nullptr);
Flush();
}
void MCMachOStreamer::FinishImpl() {
- EmitFrames(&getAssembler().getBackend(), true);
+ EmitFrames(&getAssembler().getBackend());
// We have to set the fragment atom associations so we can relax properly for
// Mach-O.
EmitRawTextImpl(T.toStringRef(Str));
}
-void MCStreamer::EmitFrames(MCAsmBackend *MAB, bool usingCFI) {
+void MCStreamer::EmitFrames(MCAsmBackend *MAB) {
if (!getNumFrameInfos())
return;
if (EmitEHFrame)
- MCDwarfFrameEmitter::Emit(*this, MAB, usingCFI, true);
+ MCDwarfFrameEmitter::Emit(*this, MAB, true, true);
if (EmitDebugFrame)
- MCDwarfFrameEmitter::Emit(*this, MAB, usingCFI, false);
+ MCDwarfFrameEmitter::Emit(*this, MAB, true, false);
}
void MCStreamer::EmitW64Tables() {
}
void X86WinCOFFStreamer::FinishImpl() {
- EmitFrames(nullptr, true);
+ EmitFrames(nullptr);
EmitW64Tables();
MCWinCOFFStreamer::FinishImpl();