rustc_codegen_llvm: create DIFile
s from just SourceFile
s.
This commit is contained in:
parent
2bfb462b58
commit
9d57c417fc
6 changed files with 21 additions and 54 deletions
|
@ -76,7 +76,7 @@ fn make_mir_scope(
|
|||
}
|
||||
|
||||
let loc = cx.lookup_debug_loc(scope_data.span.lo());
|
||||
let file_metadata = file_metadata(cx, &loc.file, debug_context.defining_crate);
|
||||
let file_metadata = file_metadata(cx, &loc.file);
|
||||
|
||||
let scope_metadata = unsafe {
|
||||
Some(llvm::LLVMRustDIBuilderCreateLexicalBlock(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue