[llvm] [llvm][DebugInfo][DWARF] Use DW_AT_APPLE_optimized to indicate optimized code in non-Apple builds. (PR #214261)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 14:53:10 PDT 2026


cmtice wrote:

> > I'm curious to hear from other LLVM debug info owners on what they think the right design is here (like, do the Apple folks (@JDevlieghere @adrian-prantl ) worry that reusing the APPLE attribute outside Apple's usage risks losing control/flexibility they'd want to have for that attribute?
> 
> Right now I'm pretty sure all of our uses of this flag are already part of LLDB. Short term, it would actually be great if we had this attribute available in LLDB on non-Apple platforms like Linux.
> 
> That said, I think the best way forward would be to propose a DW_AT_optimized flag to DWARF standard. We could adapt that int LLVM relatively quickly since it wouldn't cause any version incompatibility problems.

Yes, I have been thinking about proposing this to the DWARF standard. But since a new standard is not likely to come out very soon, It would be nice if I could use the DW_AT_APPLE_optimized for this in the meantime.

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


More information about the llvm-commits mailing list