[Lldb-commits] [lldb] [lldb] Reduce size of Mangled class (PR #200181)

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 1 02:53:04 PDT 2026


================
@@ -285,11 +285,12 @@ ConstString Mangled::GetDemangledName() const {
   return GetDemangledNameImpl(/*force=*/false);
 }
 
-std::optional<DemangledNameInfo> const &Mangled::GetDemangledInfo() const {
+std::optional<DemangledNameInfo> Mangled::GetDemangledInfo() const {
----------------
Teemperor wrote:

Let's go for a raw pointer. Only other way is waiting for c++ 26 or use `std::optional<std::reference_wrapper<>>` which is an eye sore unfortunately.

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


More information about the lldb-commits mailing list