LLVM 19.0.0git
Functions
BitWriter.cpp File Reference
#include "llvm-c/BitWriter.h"
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Functions

int LLVMWriteBitcodeToFile (LLVMModuleRef M, const char *Path)
 Writes a module to the specified path.
 
int LLVMWriteBitcodeToFD (LLVMModuleRef M, int FD, int ShouldClose, int Unbuffered)
 Writes a module to an open file descriptor.
 
int LLVMWriteBitcodeToFileHandle (LLVMModuleRef M, int FileHandle)
 Deprecated for LLVMWriteBitcodeToFD.
 
LLVMMemoryBufferRef LLVMWriteBitcodeToMemoryBuffer (LLVMModuleRef M)
 Writes a module to a new memory buffer and returns it.