Remove an always true argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-05-12 13:30:10 +00:00
parent 2e087f383e
commit 044302d718
5 changed files with 7 additions and 7 deletions

View File

@ -189,7 +189,7 @@ protected:
virtual void EmitCFIStartProcImpl(MCDwarfFrameInfo &Frame); virtual void EmitCFIStartProcImpl(MCDwarfFrameInfo &Frame);
void RecordProcEnd(MCDwarfFrameInfo &Frame); void RecordProcEnd(MCDwarfFrameInfo &Frame);
virtual void EmitCFIEndProcImpl(MCDwarfFrameInfo &CurFrame); virtual void EmitCFIEndProcImpl(MCDwarfFrameInfo &CurFrame);
void EmitFrames(MCAsmBackend *MAB, bool usingCFI); void EmitFrames(MCAsmBackend *MAB);
MCWin64EHUnwindInfo *getCurrentW64UnwindInfo() { MCWin64EHUnwindInfo *getCurrentW64UnwindInfo() {
return CurrentW64UnwindInfo; return CurrentW64UnwindInfo;

View File

@ -538,7 +538,7 @@ void MCELFStreamer::Flush() {
} }
void MCELFStreamer::FinishImpl() { void MCELFStreamer::FinishImpl() {
EmitFrames(nullptr, true); EmitFrames(nullptr);
Flush(); Flush();

View File

@ -418,7 +418,7 @@ void MCMachOStreamer::EmitInstToData(const MCInst &Inst,
} }
void MCMachOStreamer::FinishImpl() { void MCMachOStreamer::FinishImpl() {
EmitFrames(&getAssembler().getBackend(), true); EmitFrames(&getAssembler().getBackend());
// We have to set the fragment atom associations so we can relax properly for // We have to set the fragment atom associations so we can relax properly for
// Mach-O. // Mach-O.

View File

@ -615,15 +615,15 @@ void MCStreamer::EmitRawText(const Twine &T) {
EmitRawTextImpl(T.toStringRef(Str)); EmitRawTextImpl(T.toStringRef(Str));
} }
void MCStreamer::EmitFrames(MCAsmBackend *MAB, bool usingCFI) { void MCStreamer::EmitFrames(MCAsmBackend *MAB) {
if (!getNumFrameInfos()) if (!getNumFrameInfos())
return; return;
if (EmitEHFrame) if (EmitEHFrame)
MCDwarfFrameEmitter::Emit(*this, MAB, usingCFI, true); MCDwarfFrameEmitter::Emit(*this, MAB, true, true);
if (EmitDebugFrame) if (EmitDebugFrame)
MCDwarfFrameEmitter::Emit(*this, MAB, usingCFI, false); MCDwarfFrameEmitter::Emit(*this, MAB, true, false);
} }
void MCStreamer::EmitW64Tables() { void MCStreamer::EmitW64Tables() {

View File

@ -32,7 +32,7 @@ void X86WinCOFFStreamer::EmitWin64EHHandlerData() {
} }
void X86WinCOFFStreamer::FinishImpl() { void X86WinCOFFStreamer::FinishImpl() {
EmitFrames(nullptr, true); EmitFrames(nullptr);
EmitW64Tables(); EmitW64Tables();
MCWinCOFFStreamer::FinishImpl(); MCWinCOFFStreamer::FinishImpl();