mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Flush the file after writing bitcode so that clients who don't close their
ofstreams will be ok. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36878 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d44ae90fc8
commit
4eab2e57f9
@ -1201,4 +1201,7 @@ void llvm::WriteBitcodeToFile(const Module *M, std::ostream &Out) {
|
|||||||
|
|
||||||
// Write the generated bitstream to "Out".
|
// Write the generated bitstream to "Out".
|
||||||
Out.write((char*)&Buffer.front(), Buffer.size());
|
Out.write((char*)&Buffer.front(), Buffer.size());
|
||||||
|
|
||||||
|
// Make sure it hits disk now.
|
||||||
|
Out.flush();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user