Turn stdout into binary mode during bitcode emission.
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 6 Jun 2008 07:24:01 +0000 (07:24 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 6 Jun 2008 07:24:01 +0000 (07:24 +0000)
commitb0a882f540e015e35ab90d0b549f3d1c24acdb9c
treed0957898b1c29800f27684303e7adeaed9fa89dd
parent232a4ab77a078703de787c51a281efd8bed10d68
Turn stdout into binary mode during bitcode emission.
This is necessary on windows targets, since stdout is in text mode there.
Patch by Julien Lerouge!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52038 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp