llvm.org GIT mirror llvm / 4eab2e5
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 Chris Lattner 12 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
12001200
12011201 // Write the generated bitstream to "Out".
12021202 Out.write((char*)&Buffer.front(), Buffer.size());
1203 }
1203
1204 // Make sure it hits disk now.
1205 Out.flush();
1206 }