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

pub unsafe extern "C" fn LLVMRustCreateMemoryBufferWithContentsOfFile(
    Path: *const c_char
) -> Option<&'static mut MemoryBuffer>
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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