summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-02-29 20:30:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-02-29 20:30:56 +0000
commitfdc8f785cd52a4438d5bf914594253b7787ab80e (patch)
tree8bf824d6e34688576dd9f52def1d95c74affb9ef /lib/Bitcode/Writer/BitcodeWriter.cpp
parent9fd58f05d5f87ca4c4113eb3f78e1932a4e2f8d5 (diff)
downloadllvm-fdc8f785cd52a4438d5bf914594253b7787ab80e.tar.gz
llvm-fdc8f785cd52a4438d5bf914594253b7787ab80e.tar.bz2
llvm-fdc8f785cd52a4438d5bf914594253b7787ab80e.tar.xz
Bitcode: Don't expose WriteBitcodeToStream to clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index 0e8d3acfd8..7078169c4c 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -1823,6 +1823,7 @@ static void EmitDarwinBCTrailer(BitstreamWriter &Stream, unsigned BufferSize) {
}
}
+static void WriteBitcodeToStream(const Module *M, BitstreamWriter &Stream);
/// WriteBitcodeToFile - Write the specified module to the specified output
/// stream.
@@ -1838,9 +1839,7 @@ void llvm::WriteBitcodeToFile(const Module *M, raw_ostream &Out) {
Out.write((char*)&Buffer.front(), Buffer.size());
}
-/// WriteBitcodeToStream - Write the specified module to the specified output
-/// stream.
-void llvm::WriteBitcodeToStream(const Module *M, BitstreamWriter &Stream) {
+static void WriteBitcodeToStream(const Module *M, BitstreamWriter &Stream) {
// If this is darwin or another generic macho target, emit a file header and
// trailer if needed.
Triple TT(M->getTargetTriple());