This is an archive of the discontinued LLVM Phabricator instance.

[DWARF5] Added support for DW_AT_noreturn attribute to be emitted for C++ class member functions.
ClosedPublic

Authored by SouraVX on Oct 9 2019, 5:21 AM.

Diff Detail

Event Timeline

SouraVX created this revision.Oct 9 2019, 5:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2019, 5:21 AM
SouraVX set the repository for this revision to rC Clang.Oct 9 2019, 5:35 AM
SouraVX added a subscriber: jini.susan.george.
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2019, 5:35 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aprantl accepted this revision.Oct 15 2019, 8:22 AM

LGTM with updated testcase, thanks!

llvm/test/DebugInfo/X86/noreturn_cpp11.ll
59–63

Please remove all stringified attributes that aren't strictly necessary for the test.

This revision is now accepted and ready to land.Oct 15 2019, 8:22 AM
SouraVX updated this revision to Diff 225052.Oct 15 2019, 8:54 AM

Thanks Adrian for review!
Addressing your review comments.

SouraVX marked 2 inline comments as done.Oct 15 2019, 8:55 AM
SouraVX added inline comments.
llvm/test/DebugInfo/X86/noreturn_cpp11.ll
59–63

Done!

SouraVX marked an inline comment as done.Oct 15 2019, 8:56 AM

Thanks Adrian for review!
Addressing your review comments.

Could you please commit these changes for me, Thanks!

aprantl requested changes to this revision.Oct 15 2019, 1:34 PM

Ah sorry. While preparing this for commit I realized that the CGDebugInfo change is untested. Can you add a Clang test that checks that CFE is emitting the expected LLVM IR?

This revision now requires changes to proceed.Oct 15 2019, 1:34 PM
SouraVX updated this revision to Diff 225159.Oct 15 2019, 10:11 PM

Added test case in CFE for checking expected LLVM IR emission.

aprantl accepted this revision.Oct 16 2019, 9:02 AM
This revision is now accepted and ready to land.Oct 16 2019, 9:02 AM
This revision was automatically updated to reflect the committed changes.