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

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 9 16:31:11 PDT 2019


JDevlieghere added inline comments.


================
Comment at: lldb/include/lldb/Utility/Scalar.h:107
+  /// Return the most efficient Scalar::Type for the requested size.
+  static Type GetBestType(size_t bit_size, bool sign);
+
----------------
How about `GetTypeForBitSize`? 


================
Comment at: lldb/source/Expression/DWARFExpression.cpp:2571
+      if (stack.size() < 1) {
+        if (error_ptr)
+          error_ptr->SetErrorString(
----------------
Can we wrap this in a lambda? 


================
Comment at: lldb/source/Utility/Scalar.cpp:442
+  default:
+    assert(false && "Promoting a Scalar to a specific number of bits is only "
+                    "supported for integer types.");
----------------
llvm::unreachable?


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