CarlosAlbertoEnciso wrote: @OCHyams mentioned:
> Is it not bending the spec a little to have DW_AT_call_origin be a subprogram > reference for a virtual call (which is indirect)? Possibly naively, would it > make more sense for this this point to the global _vtable$ variable DIE? I > might have completely the wrong end of the stick here. @tromey mentioned: > I think this means that a virtual call should be represented by a > DW_AT_call_target with a DWARF expression that finds the call target, i.e., > by finding the correct slot in the vtable. >From these comments, I am sensing that for virtual calls, instead of adding a >new attribute, an alternative solution could be to use the `DW_AT_call_target` >with an expression involving the global `_vtable$` variable and extra >information to find the correct slot? https://github.com/llvm/llvm-project/pull/167666 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
