[clang] [compiler-rt] [clang-repl] Reimplement value printing using MemoryAccess to support in-process and out-of-process (PR #156649)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 22:53:27 PDT 2025


================
@@ -92,119 +99,456 @@ class QualType;
   X(double, Double)                                                            \
   X(long double, LongDouble)
 
-class REPL_EXTERNAL_VISIBILITY Value {
-  union Storage {
-#define X(type, name) type m_##name;
+class Value;
+
+/// \struct ValueCleanup
+/// \brief Encapsulates destructor invocation for REPL values.
----------------
SahilPatidar wrote:

We can move `ValueResultManager` elsewhere since it’s related to interpreter functionality, but we still need a similar solution to what `ValueCleanup` provides. `ValueCleanup` is essentially just a wrapper around the old approach: previously we made direct calls, but now we use `orc::Wrapper` calls.


https://github.com/llvm/llvm-project/pull/156649


More information about the llvm-commits mailing list