diff --git a/include/llvm/MC/MCDwarf.h b/include/llvm/MC/MCDwarf.h index 7077ffb4714..0e6771f4f9a 100644 --- a/include/llvm/MC/MCDwarf.h +++ b/include/llvm/MC/MCDwarf.h @@ -485,8 +485,7 @@ public: // // This emits the frame info section. // - static void Emit(MCStreamer &streamer, MCAsmBackend *MAB, - bool usingCFI, bool isEH); + static void Emit(MCStreamer &streamer, MCAsmBackend *MAB, bool isEH); static void EmitAdvanceLoc(MCStreamer &Streamer, uint64_t AddrDelta); static void EncodeAdvanceLoc(MCContext &Context, uint64_t AddrDelta, raw_ostream &OS); diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index 7481e45c596..aca483d6d54 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -1480,12 +1480,12 @@ namespace llvm { } void MCDwarfFrameEmitter::Emit(MCStreamer &Streamer, MCAsmBackend *MAB, - bool UsingCFI, bool IsEH) { + bool IsEH) { Streamer.generateCompactUnwindEncodings(MAB); MCContext &Context = Streamer.getContext(); const MCObjectFileInfo *MOFI = Context.getObjectFileInfo(); - FrameEmitterImpl Emitter(UsingCFI, IsEH); + FrameEmitterImpl Emitter(true, IsEH); ArrayRef FrameArray = Streamer.getFrameInfos(); // Emit the compact unwind info if available. diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index d9bfac9ddf4..a5c20340c4a 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -620,10 +620,10 @@ void MCStreamer::EmitFrames(MCAsmBackend *MAB) { return; if (EmitEHFrame) - MCDwarfFrameEmitter::Emit(*this, MAB, true, true); + MCDwarfFrameEmitter::Emit(*this, MAB, true); if (EmitDebugFrame) - MCDwarfFrameEmitter::Emit(*this, MAB, true, false); + MCDwarfFrameEmitter::Emit(*this, MAB, false); } void MCStreamer::EmitW64Tables() {