rustc_llvm::LLVMRustCreateMemoryBufferWithContentsOfFileUnstable [-] [+] [src]

pub unsafe extern fn LLVMRustCreateMemoryBufferWithContentsOfFile(Path: *const c_char) -> MemoryBufferRef

Reads the given file and returns it as a memory buffer. Use LLVMDisposeMemoryBuffer() to get rid of it.