This is an archive of the discontinued LLVM Phabricator instance.

[lldb][Test] Prevent generating DW_AT_location for unused argument
ClosedPublic

Authored by Michael137 on Aug 25 2022, 12:47 AM.

Details

Summary

This test simply checks whether we can print an optimized
function argument. With recent changes to Clang the assumption
that we don't generate a DW_AT_location attribute for the
unused funciton parameter breaks.

This patch tries harder to get Clang to drop the location
from DWARF by making it generate an undef for unused1.
Drop the check for unused2 since it adds no benefit.

Diff Detail

Event Timeline

Michael137 created this revision.Aug 25 2022, 12:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 12:47 AM
Michael137 requested review of this revision.Aug 25 2022, 12:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 12:47 AM
  • clang-format
This revision was not accepted when it landed; it landed in state Needs Review.Aug 25 2022, 12:50 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.