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.
Declared in <llvm/Bitcode/BitcodeWriterPass.h>
ModulePass*
createBitcodeWriterPass(
raw_ostream& Str,
bool ShouldPreserveUseListOrder = false);
If ShouldPreserveUseListOrder, encode use-list order so it can be reproduced when deserialized.
A ModulePass that writes the module to Str.
| Name | Description |
|---|---|
| Str | The output stream to write the bitcode to. |
| ShouldPreserveUseListOrder | If true, encode use-list order so it can be reproduced when deserialized. |