llvm::createBitcodeWriterPass

Create and return a pass that writes the module to the specified ostream. Note that this pass is designed for use with the legacy pass manager.

Synopsis

Declared in <llvm/Bitcode/BitcodeWriterPass.h>

ModulePass*
createBitcodeWriterPass(
    raw_ostream& Str,
    bool ShouldPreserveUseListOrder = false);

Description

If ShouldPreserveUseListOrder, encode use-list order so it can be reproduced when deserialized.

Return Value

ModulePass class - This class is used to implement unstructured interprocedural optimizations and analyses. ModulePasses may do anything they want to the program.

Parameters

NameDescription
StrThis class implements an extremely fast bulk output stream that can only output to a stream. It does not support seeking, reopening, rewinding, line buffered disciplines etc. It is a simple buffer that outputs a chunk at a time.