Emit DW_AT_external if applicable
This commit is contained in:
parent
98eaaeda11
commit
a64387bb6b
@ -221,6 +221,10 @@ pub(crate) fn define_function<'tcx>(
|
|||||||
entry.set(gimli::DW_AT_decl_file, AttributeValue::FileIndex(Some(file_id)));
|
entry.set(gimli::DW_AT_decl_file, AttributeValue::FileIndex(Some(file_id)));
|
||||||
entry.set(gimli::DW_AT_decl_line, AttributeValue::Udata(line));
|
entry.set(gimli::DW_AT_decl_line, AttributeValue::Udata(line));
|
||||||
|
|
||||||
|
if tcx.is_reachable_non_generic(instance.def_id()) {
|
||||||
|
entry.set(gimli::DW_AT_external, AttributeValue::FlagPresent);
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME set DW_AT_external as appropriate
|
// FIXME set DW_AT_external as appropriate
|
||||||
|
|
||||||
FunctionDebugContext {
|
FunctionDebugContext {
|
||||||
|
Loading…
Reference in New Issue
Block a user