[Lldb-commits] [lldb] [lldb] Add SBCompileUnit::GetIsOptimized (PR #222403)

Sergei Druzhkov via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 9 12:00:49 PDT 2026


DrSergei wrote:

> > LGTM, maybe we can adopt it in the future for [Module.isOptimized](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Module) from modules request
> 
> Yeah that's right. We'll have to decide though what the semantics of that will be. Do we say isOptimized if at least one CU is optimized? (which is very likely if you linked in a static library) or do we only say isOptimized if all the CUs are?

Personally I prefer second option

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


More information about the lldb-commits mailing list