labath added a comment.

<drive-by>
It sounds like that could be an artefact from how we parse function types from 
dwarf. I haven't checked if that's what happens in this particular case, but I 
know that we parse function types by just taking the function DIE (which 
describes the whole function, not just its type) and let the generic 
ParseTypeFromDWARF function loose on it. It could be that this function picks 
up the DW_AT_name attribute from there (which is the function name in this 
case, but for other kinds of types it would actually be the type name). We 
could probably change that function to ignore the DW_AT_name for functions, 
though it's not clear to me whether the current behavior has any adverse 
effects (the final type name seems to come out alright...)
</drive-by>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88483/new/

https://reviews.llvm.org/D88483

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to