summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5fa5ecf852afc93e3d657bde1c5ec63b98efb209 (patch)
tree1376d394f970edf2ce86cec586c7c9a4eb5362b8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentff3f99bf0a1f0700f29b3e0ff1d574185e2bf4de (diff)
downloadbcm5719-llvm-5fa5ecf852afc93e3d657bde1c5ec63b98efb209.tar.gz
bcm5719-llvm-5fa5ecf852afc93e3d657bde1c5ec63b98efb209.zip
Bitcode: Don't expose WriteBitcodeToStream to clients.
llvm-svn: 151747
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 0e8d3acfd81..7078169c4c5 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud