From 49d691389ef349534cf42a129f044dd1af3c1d8b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 3 Nov 2015 18:55:58 +0000 Subject: [PATCH] Delete dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251960 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCELFStreamer.h | 2 -- include/llvm/MC/MCStreamer.h | 3 --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 --- lib/MC/MCELFStreamer.cpp | 6 ------ 4 files changed, 14 deletions(-) diff --git a/include/llvm/MC/MCELFStreamer.h b/include/llvm/MC/MCELFStreamer.h index b71372ad186..6eb2c2c343f 100644 --- a/include/llvm/MC/MCELFStreamer.h +++ b/include/llvm/MC/MCELFStreamer.h @@ -76,8 +76,6 @@ public: void EmitValueToAlignment(unsigned, int64_t, unsigned, unsigned) override; - void Flush() override; - void FinishImpl() override; void EmitBundleAlignMode(unsigned AlignPow2) override; diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index 258c40a919e..eb8da33a31d 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -706,9 +706,6 @@ public: /// the hasRawTextSupport() predicate. By default this aborts. void EmitRawText(const Twine &String); - /// \brief Causes any cached state to be written out. - virtual void Flush() {} - /// \brief Streamer specific finalization. virtual void FinishImpl(); /// \brief Finish emission of machine code. diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 00762ca0ca8..8fe5094ba68 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1143,9 +1143,6 @@ bool AsmPrinter::doFinalization(Module &M) { } } - // Make sure we wrote out everything we need. - OutStreamer->Flush(); - // Finalize debug and EH information. for (const HandlerInfo &HI : Handlers) { NamedRegionTimer T(HI.TimerName, HI.TimerGroupName, diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index b20b99340bb..7b45506a349 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -630,10 +630,6 @@ void MCELFStreamer::EmitBundleUnlock() { Sec.setBundleLockState(MCSection::NotBundleLocked); } -void MCELFStreamer::Flush() { - -} - void MCELFStreamer::FinishImpl() { // Ensure the last section gets aligned if necessary. MCSection *CurSection = getCurrentSectionOnly(); @@ -641,8 +637,6 @@ void MCELFStreamer::FinishImpl() { EmitFrames(nullptr); - Flush(); - this->MCObjectStreamer::FinishImpl(); } -- 2.34.1