forked from OSchip/llvm-project
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:
parent
c699831d09
commit
a76715fc88
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -693,7 +693,6 @@ void MCAsmStreamer::EmitRawText(StringRef String) {
|
|||
}
|
||||
|
||||
void MCAsmStreamer::Finish() {
|
||||
OS.flush();
|
||||
}
|
||||
|
||||
MCStreamer *llvm::createAsmStreamer(MCContext &Context,
|
||||
|
|
|
@ -759,7 +759,6 @@ void MCAssembler::Finish() {
|
|||
|
||||
// Write the object file.
|
||||
Writer->WriteObject(*this, Layout);
|
||||
OS.flush();
|
||||
|
||||
stats::ObjectBytes += OS.tell() - StartOffset;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue