[−][src]Function rustc_codegen_llvm::debuginfo::source_loc::start_emitting_source_locations
pub fn start_emitting_source_locations<'ll>(
dbg_context: &FunctionDebugContext<'ll>
)
🔬 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?
Enables emitting source locations for the given functions.
Since we don't want source locations to be emitted for the function prelude, they are disabled when beginning to codegen a new function. This functions switches source location emitting on and must therefore be called before the first real statement/expression of the function is codegened.