LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::BitcodeWriterPass Class Reference

Pass for writing a module of IR out to a bitcode file. More...

#include <BitcodeWriterPass.h>

List of all members.

Public Member Functions

 BitcodeWriterPass (raw_ostream &OS)
 Construct a bitcode writer pass around a particular output stream.
PreservedAnalyses run (Module *M)
 Run the bitcode writer pass, and output the module to the selected output stream.

Static Public Member Functions

static StringRef name ()

Detailed Description

Pass for writing a module of IR out to a bitcode file.

Note that this is intended for use with the new pass manager. To construct a pass for the legacy pass manager, use the function above.

Definition at line 35 of file BitcodeWriterPass.h.


Constructor & Destructor Documentation

Construct a bitcode writer pass around a particular output stream.

Definition at line 40 of file BitcodeWriterPass.h.


Member Function Documentation

static StringRef llvm::BitcodeWriterPass::name ( ) [inline, static]

Definition at line 46 of file BitcodeWriterPass.h.

Run the bitcode writer pass, and output the module to the selected output stream.

Definition at line 21 of file BitcodeWriterPass.cpp.

References llvm::PreservedAnalyses::all(), and llvm::WriteBitcodeToFile().


The documentation for this class was generated from the following files: