forked from OSchip/llvm-project
Don't flush the raw_ostream in llvm::WriteBitcodeToFile; it's at
the wrong level. Clients which need to leave the stream open but which still require the bitcode bits to be on disk should call flush themselves. llvm-svn: 104885
This commit is contained in:
parent
7a9dedf0ab
commit
a880546c65
|
@ -1664,9 +1664,6 @@ void llvm::WriteBitcodeToFile(const Module *M, raw_ostream &Out) {
|
|||
|
||||
// Write the generated bitstream to "Out".
|
||||
Out.write((char*)&Buffer.front(), Buffer.size());
|
||||
|
||||
// Make sure it hits disk now.
|
||||
Out.flush();
|
||||
}
|
||||
|
||||
/// WriteBitcodeToStream - Write the specified module to the specified output
|
||||
|
|
Loading…
Reference in New Issue