LLVM API Documentation
Functions | |
LLVMBool | LLVMCreateMemoryBufferWithContentsOfFile (const char *Path, LLVMMemoryBufferRef *OutMemBuf, char **OutMessage) |
LLVMBool | LLVMCreateMemoryBufferWithSTDIN (LLVMMemoryBufferRef *OutMemBuf, char **OutMessage) |
LLVMMemoryBufferRef | LLVMCreateMemoryBufferWithMemoryRange (const char *InputData, size_t InputDataLength, const char *BufferName, LLVMBool RequiresNullTerminator) |
LLVMMemoryBufferRef | LLVMCreateMemoryBufferWithMemoryRangeCopy (const char *InputData, size_t InputDataLength, const char *BufferName) |
const char * | LLVMGetBufferStart (LLVMMemoryBufferRef MemBuf) |
size_t | LLVMGetBufferSize (LLVMMemoryBufferRef MemBuf) |
void | LLVMDisposeMemoryBuffer (LLVMMemoryBufferRef MemBuf) |
LLVMBool LLVMCreateMemoryBufferWithContentsOfFile | ( | const char * | Path, |
LLVMMemoryBufferRef * | OutMemBuf, | ||
char ** | OutMessage | ||
) |
Definition at line 2627 of file Core.cpp.
References llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFile(), llvm::LibFunc::strdup, and llvm::wrap().
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRange | ( | const char * | InputData, |
size_t | InputDataLength, | ||
const char * | BufferName, | ||
LLVMBool | RequiresNullTerminator | ||
) |
Definition at line 2652 of file Core.cpp.
References llvm::MemoryBuffer::getMemBuffer(), and llvm::wrap().
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy | ( | const char * | InputData, |
size_t | InputDataLength, | ||
const char * | BufferName | ||
) |
Definition at line 2663 of file Core.cpp.
References llvm::MemoryBuffer::getMemBufferCopy(), and llvm::wrap().
Referenced by LLVMTargetMachineEmitToMemoryBuffer().
LLVMBool LLVMCreateMemoryBufferWithSTDIN | ( | LLVMMemoryBufferRef * | OutMemBuf, |
char ** | OutMessage | ||
) |
Definition at line 2641 of file Core.cpp.
References llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getSTDIN(), llvm::LibFunc::strdup, and llvm::wrap().
void LLVMDisposeMemoryBuffer | ( | LLVMMemoryBufferRef | MemBuf | ) |
Definition at line 2681 of file Core.cpp.
References llvm::unwrap().
size_t LLVMGetBufferSize | ( | LLVMMemoryBufferRef | MemBuf | ) |
Definition at line 2677 of file Core.cpp.
References llvm::unwrap().
const char* LLVMGetBufferStart | ( | LLVMMemoryBufferRef | MemBuf | ) |
Definition at line 2673 of file Core.cpp.
References llvm::unwrap().