Don't call flush() at a library level which isn't checking for errors

and doesn't know where the output is going.

llvm-svn: 105274
This commit is contained in:
Dan Gohman 2010-06-01 16:31:34 +00:00
parent c699831d09
commit a76715fc88
3 changed files with 1 additions and 3 deletions

View File

@ -314,7 +314,7 @@ namespace llvm {
virtual void EmitRawText(StringRef String);
void EmitRawText(const Twine &String);
/// Finish - Finish emission of machine code and flush any output.
/// Finish - Finish emission of machine code.
virtual void Finish() = 0;
};

View File

@ -693,7 +693,6 @@ void MCAsmStreamer::EmitRawText(StringRef String) {
}
void MCAsmStreamer::Finish() {
OS.flush();
}
MCStreamer *llvm::createAsmStreamer(MCContext &Context,

View File

@ -759,7 +759,6 @@ void MCAssembler::Finish() {
// Write the object file.
Writer->WriteObject(*this, Layout);
OS.flush();
stats::ObjectBytes += OS.tell() - StartOffset;
}