mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Bitcode: Don't expose WriteBitcodeToStream to clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user