The LTO in clang creates some really interesting DWARF... One of the latest 
things I discovered is DW_TAG_inlined_subroutine tags that are not contained 
within a DW_TAG_subprogram. I am guessing the compiler/linker wanted to outline 
an inlined function and tried its best to move the DWARF and didn't end up 
changing the tag from DW_TAG_inlined_subroutine to DW_TAG_subprogram.

I was thinking of adding code to "llvm-dwarfdump --verify" to detect this 
issue, but wanted to check with the DWARF list first to make sure this would be 
considered an error. So I am looking for an answer to:

Is it ok for DW_TAG_inlined_subroutine with high and low PC values to appear on 
their own, not enclosed in a DW_TAG_subprogram?

Greg Clayton
_______________________________________________
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org

Reply via email to