[Lldb-commits] [clang] [lldb] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 31 13:45:50 PDT 2023
https://github.com/clayborg commented:
One question I have here: where will the DW_TAG_variable get emitted for these `constexpr`? For actual static member variables we emit a single DW_TAG_variable in the file that declares the global variable, but for `constexpr` we won't be able to do this will we? Will we end up emitting a new copy each time someone include the header file? In that case we might end up with many global variables being defined in a linked executable that includes this header file more than once?
https://github.com/llvm/llvm-project/pull/70639
More information about the lldb-commits
mailing list