aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Bitcode/ReaderWriter.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 20:06:51 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 20:06:51 +0000
commitd0008f0858d374b1122af8b6d7c52c8e02c7e92c (patch)
tree68719880eae13bc8ff7e27b0953370bbbbc2a562 /include/llvm/Bitcode/ReaderWriter.h
parent90cc4dd2ac7925889f561383c49dd0b0526875a3 (diff)
downloadexternal_llvm-d0008f0858d374b1122af8b6d7c52c8e02c7e92c.zip
external_llvm-d0008f0858d374b1122af8b6d7c52c8e02c7e92c.tar.gz
external_llvm-d0008f0858d374b1122af8b6d7c52c8e02c7e92c.tar.bz2
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
Diffstat (limited to 'include/llvm/Bitcode/ReaderWriter.h')
-rw-r--r--include/llvm/Bitcode/ReaderWriter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/ReaderWriter.h b/include/llvm/Bitcode/ReaderWriter.h
index 45eb801..a186964 100644
--- a/include/llvm/Bitcode/ReaderWriter.h
+++ b/include/llvm/Bitcode/ReaderWriter.h
@@ -40,7 +40,8 @@ namespace llvm {
std::string *ErrMsg = 0);
/// WriteBitcodeToFile - Write the specified module to the specified
- /// raw output stream.
+ /// raw output stream. For streams where it matters, the given stream
+ /// should be in "binary" mode.
void WriteBitcodeToFile(const Module *M, raw_ostream &Out);
/// WriteBitcodeToStream - Write the specified module to the specified