mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
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
This commit is contained in:
parent
943005e094
commit
4b1000d117
@ -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…
x
Reference in New Issue
Block a user