diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-01 16:31:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-01 16:31:34 +0000 |
commit | 4b1000d117f1b7cc5411bc251d141fe182a4ae1c (patch) | |
tree | ee4de67b3146530a062aed953ac55bf9846ea33b /lib/MC | |
parent | 943005e09482f47619cc1345320df359c6c3021e (diff) | |
download | external_llvm-4b1000d117f1b7cc5411bc251d141fe182a4ae1c.zip external_llvm-4b1000d117f1b7cc5411bc251d141fe182a4ae1c.tar.gz external_llvm-4b1000d117f1b7cc5411bc251d141fe182a4ae1c.tar.bz2 |
Don't call flush() at a library level which isn't checking for errors
and doesn't know where the output is going.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 1 | ||||
-rw-r--r-- | lib/MC/MCAssembler.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 57b2bcc..de1d6ee 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -693,7 +693,6 @@ void MCAsmStreamer::EmitRawText(StringRef String) { } void MCAsmStreamer::Finish() { - OS.flush(); } MCStreamer *llvm::createAsmStreamer(MCContext &Context, diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 5936656..c971ee2 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -759,7 +759,6 @@ void MCAssembler::Finish() { // Write the object file. Writer->WriteObject(*this, Layout); - OS.flush(); stats::ObjectBytes += OS.tell() - StartOffset; } |