MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / llvm_err

Function llvm_err

crates/rustc_codegen_nvvm/src/back.rs:31–36  ·  view source on GitHub ↗
(handler: &Handler, msg: &str)

Source from the content-addressed store, hash-verified

29};
30
31pub fn llvm_err(handler: &Handler, msg: &str) -> FatalError {
32 match llvm::last_error() {
33 Some(err) => handler.fatal(&format!("{}: {}", msg, err)),
34 None => handler.fatal(msg),
35 }
36}
37
38pub fn to_llvm_opt_settings(
39 cfg: config::OptLevel,

Callers 2

codegenFunction · 0.85
parse_moduleFunction · 0.85

Calls 2

last_errorFunction · 0.85
fatalMethod · 0.80

Tested by

no test coverage detected