[−][src]Function rustc_codegen_llvm::llvm::LLVMRustCreateMemoryBufferWithContentsOfFile

pub unsafe extern "C" fn LLVMRustCreateMemoryBufferWithContentsOfFile(
    Path: *const c_char
) -> Option<&'static mut MemoryBuffer>

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