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

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Fri May 29 00:00:08 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 {
----------------
felipepiovezan wrote:

why not return a raw pointer here? we're still making a copy of the whole data structure

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


More information about the lldb-commits mailing list