Don't special-case stdout in llvm::WriteBitcodeToFile; just consider
authorDan Gohman <gohman@apple.com>
Thu, 27 May 2010 20:06:51 +0000 (20:06 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 27 May 2010 20:06:51 +0000 (20:06 +0000)
commitd928fb670fb3b0818fc23738e9c2418980bb141e
tree68719880eae13bc8ff7e27b0953370bbbbc2a562
parent57041b6f3337f733eff945ca0c43434eb20c8410
Don't special-case stdout in llvm::WriteBitcodeToFile; just consider
it to be the caller's responsibility to provide a stream in binary
mode. This fixes a layering violation and avoids an outs() call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104878 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/ReaderWriter.h
lib/Bitcode/Writer/BitcodeWriter.cpp
tools/opt/opt.cpp