Support for DW_AT_noreturn DWARF flag. Add it to debug info in case function is C++11 [[ noreturn ]] or C11 _Noreturn.
PS Corresponding clang patch is following
Differential D23167
emit_DW_AT_noreturn flag vleschuk on Aug 4 2016, 9:10 AM. Authored by
Details
Support for DW_AT_noreturn DWARF flag. Add it to debug info in case function is C++11 [[ noreturn ]] or C11 _Noreturn. PS Corresponding clang patch is following
Diff Detail Event TimelineComment Actions Thanks for working in this! Could you please also add a test for llvm-dwarfdump?
Comment Actions Thanks, now all that's missing is an LLVM IR round-trip test. Adding the new flag to test/Assembler/disubprogram would work.
Comment Actions LGTM on the condition that the missing IR roundtrip test (e.g., by extending test/Assembler/disubprogram.ll) is added before committing. Comment Actions Found one more.
Comment Actions Done
Comment Actions You are adding a new constant to the LLVM IR, so there should be a round-trip test that tests the LLVM IR parser, bitcode writer, bitcode reader, and LLVM IR printer to make sure we're handling the new constant correctly. One easy way to do this is by adding the new flag to the already existing test in test/IR/disubprogram.ll. Comment Actions Replied on doxygen-related comment: I do not think we should use different styles within one file. |
The \brief is redundant. We compile doxygen with autobrief now.
Also, there's a missing . at the end.