llvm::BitcodeWriter

Synopsis

Declared in <llvm/Bitcode/BitcodeWriter.h>

class BitcodeWriter;

Member Functions

NameDescription
BitcodeWriter [constructor]Create a BitcodeWriter that writes to Buffer.
~BitcodeWriter [destructor]Destructor
copyStrtab Copy the string table for another module into this bitcode file. This should be called after copying the module itself into the bitcode file.
writeIndex
writeModule Write the specified module to the buffer specified at construction time.
writeStrtab Write the bitcode file's string table. This must be called exactly once after all modules and the optional symbol table have been written.
writeSymtab Attempt to write a symbol table to the bitcode file. This must be called at most once after all modules have been written.
writeThinLinkBitcode Write the specified thin link bitcode file (i.e., the minimized bitcode file) to the buffer specified at construction time. The thin link bitcode file is used for thin link, and it only contains the necessary information for thin link.