[llvm] r251960 - Delete dead code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 3 10:55:58 PST 2015
Author: rafael
Date: Tue Nov 3 12:55:58 2015
New Revision: 251960
URL: http://llvm.org/viewvc/llvm-project?rev=251960&view=rev
Log:
Delete dead code.
Modified:
llvm/trunk/include/llvm/MC/MCELFStreamer.h
llvm/trunk/include/llvm/MC/MCStreamer.h
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/lib/MC/MCELFStreamer.cpp
Modified: llvm/trunk/include/llvm/MC/MCELFStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCELFStreamer.h?rev=251960&r1=251959&r2=251960&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCELFStreamer.h (original)
+++ llvm/trunk/include/llvm/MC/MCELFStreamer.h Tue Nov 3 12:55:58 2015
@@ -76,8 +76,6 @@ public:
void EmitValueToAlignment(unsigned, int64_t, unsigned, unsigned) override;
- void Flush() override;
-
void FinishImpl() override;
void EmitBundleAlignMode(unsigned AlignPow2) override;
Modified: llvm/trunk/include/llvm/MC/MCStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCStreamer.h?rev=251960&r1=251959&r2=251960&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCStreamer.h (original)
+++ llvm/trunk/include/llvm/MC/MCStreamer.h Tue Nov 3 12:55:58 2015
@@ -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.
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=251960&r1=251959&r2=251960&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Tue Nov 3 12:55:58 2015
@@ -1143,9 +1143,6 @@ bool AsmPrinter::doFinalization(Module &
}
}
- // 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,
Modified: llvm/trunk/lib/MC/MCELFStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCELFStreamer.cpp?rev=251960&r1=251959&r2=251960&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCELFStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCELFStreamer.cpp Tue Nov 3 12:55:58 2015
@@ -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();
}
More information about the llvm-commits
mailing list