MCPcopy Create free account
hub / github.com/apache/arrow / GetBufferFromFile

Function GetBufferFromFile

cpp/src/gandiva/function_registry.cc:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53arrow::Result<std::unique_ptr<llvm::MemoryBuffer>> GetBufferFromFile(
54 const std::string& bitcode_file_path) {
55 auto buffer_or_error = llvm::MemoryBuffer::getFile(bitcode_file_path);
56
57 ARROW_RETURN_IF(!buffer_or_error,
58 Status::IOError("Could not load module from bitcode file: ",
59 bitcode_file_path +
60 " Error: " + buffer_or_error.getError().message()));
61
62 return std::move(buffer_or_error.get());
63}
64
65} // namespace
66

Callers

nothing calls this directly

Calls 2

IOErrorFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected