[Lldb-commits] [PATCH] D67369: Implement DW_OP_convert

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 9 15:27:10 PDT 2019


jasonmolenda accepted this revision.
jasonmolenda added a comment.
This revision is now accepted and ready to land.

LGTM, nice job with the test case, I see myself copying that in the future. :)



================
Comment at: lldb/source/Utility/Scalar.cpp:423
+    if (bit_size <= sizeof(int)*8) return Scalar::e_sint;
+    if (bit_size <= sizeof(long)*8) return Scalar::e_slong;
+    if (bit_size <= sizeof(long long)*8) return Scalar::e_slonglong;
----------------
What about an ILP32 target like arm64_32, with lldb running on an LP64 system - are we mixing target & host type sizes here?  I'm not sure if Scalar's types (e_slong etc) are in host or target terms.  I mean this code might as well be if bit_size <= 32 return Scalar::e_Signed32BitType, but I wanted to check in because we're using host type sizes here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D67369





More information about the lldb-commits mailing list