Delete dead code.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Nov 2015 18:55:58 +0000 (18:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Nov 2015 18:55:58 +0000 (18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251960 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCELFStreamer.h
include/llvm/MC/MCStreamer.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCELFStreamer.cpp

index b71372ad18643c271ce885f86e69264820cfdfe9..6eb2c2c343ffe7c5fb4eed7ce4a32d0f064fab4b 100644 (file)
@@ -76,8 +76,6 @@ public:
 
   void EmitValueToAlignment(unsigned, int64_t, unsigned, unsigned) override;
 
 
   void EmitValueToAlignment(unsigned, int64_t, unsigned, unsigned) override;
 
-  void Flush() override;
-
   void FinishImpl() override;
 
   void EmitBundleAlignMode(unsigned AlignPow2) override;
   void FinishImpl() override;
 
   void EmitBundleAlignMode(unsigned AlignPow2) override;
index 258c40a919ee94c038429c8c2fcf4bee7eecdfc9..eb8da33a31d34d6382b5c7894e64c9f6beba664e 100644 (file)
@@ -706,9 +706,6 @@ public:
   /// the hasRawTextSupport() predicate.  By default this aborts.
   void EmitRawText(const Twine &String);
 
   /// 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.
   /// \brief Streamer specific finalization.
   virtual void FinishImpl();
   /// \brief Finish emission of machine code.
index 00762ca0ca81b12ded915cb1d2ccd8473a95f39c..8fe5094ba689edb3584a2b2bef8938c9a1f9da5d 100644 (file)
@@ -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,
   // Finalize debug and EH information.
   for (const HandlerInfo &HI : Handlers) {
     NamedRegionTimer T(HI.TimerName, HI.TimerGroupName,
index b20b99340bbbaaac60778c695e07c1ee5b687bcc..7b45506a3493e8c133555fdef87d4f0115ced7cc 100644 (file)
@@ -630,10 +630,6 @@ void MCELFStreamer::EmitBundleUnlock() {
     Sec.setBundleLockState(MCSection::NotBundleLocked);
 }
 
     Sec.setBundleLockState(MCSection::NotBundleLocked);
 }
 
-void MCELFStreamer::Flush() {
-
-}
-
 void MCELFStreamer::FinishImpl() {
   // Ensure the last section gets aligned if necessary.
   MCSection *CurSection = getCurrentSectionOnly();
 void MCELFStreamer::FinishImpl() {
   // Ensure the last section gets aligned if necessary.
   MCSection *CurSection = getCurrentSectionOnly();
@@ -641,8 +637,6 @@ void MCELFStreamer::FinishImpl() {
 
   EmitFrames(nullptr);
 
 
   EmitFrames(nullptr);
 
-  Flush();
-
   this->MCObjectStreamer::FinishImpl();
 }
 
   this->MCObjectStreamer::FinishImpl();
 }