This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Flang should not emit DW_AT_main_subprogram for DWARF version lower than 4
Needs ReviewPublic

Authored by alok on Sep 11 2020, 2:28 AM.

Details

Summary
Summary:

DWARF attribute DW_AT_main_subprogram should be emitted with DWARF version 4 or greater.

Testing:

  • check-llvm
  • check-debuginfo

Diff Detail

Event Timeline

alok created this revision.Sep 11 2020, 2:28 AM
alok requested review of this revision.Sep 11 2020, 2:28 AM

Is this causing real problems? Usually we emit newer attributes even for older DWARF versions because most consumers just ignore unknown attributes.

DavidTruby resigned from this revision.Sep 30 2020, 5:35 AM
ormris removed a subscriber: ormris.Jun 3 2021, 11:00 AM