[PATCH] D91203: [WebAssembly] Fixed wasm64 DWARF using 64-bit code pointer sizes

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 13:30:49 PST 2020


dblaikie added a comment.

Does this mean, for instance, that `sizeof(int*)` is different from `sizeof(void(*)())`?

I'm not sure how DWARF handles that - for instance the address of a global variable (in the DW_AT_location of a DW_AT_variable) compared to the starting address of a function (in the DW_AT_low_pc in a DW_TAG_subprogram) use the same concept of address encoding - so I'm not sure if/how DWARF handles having different data/code pointer sizes, perhaps it has to use the larger of the two for both? You might need to find another architecture that has such a feature and, say, already has GCC support for DWARF to see how it's handled there?


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

https://reviews.llvm.org/D91203



More information about the llvm-commits mailing list