From f4a96388845da3d72169c6e9104e14c299e1c594 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 12 May 2014 13:34:25 +0000 Subject: [PATCH] Remove always true argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208558 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCDwarf.h | 3 +-- lib/MC/MCDwarf.cpp | 4 ++-- lib/MC/MCStreamer.cpp | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) 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() {