[all-commits] [llvm/llvm-project] 4c0878: [LLDB][NativePDB] Add local constant support (#180...

Leonard Grey via All-commits all-commits at lists.llvm.org
Thu Feb 12 06:35:22 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c08780e7c5b7db8ab8c888fe7f97039b44f3c77
      https://github.com/llvm/llvm-project/commit/4c08780e7c5b7db8ab8c888fe7f97039b44f3c77
  Author: Leonard Grey <leonard at leonardgrey.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
    M lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h
    A lldb/test/Shell/SymbolFile/NativePDB/local-constant.test

  Log Message:
  -----------
  [LLDB][NativePDB] Add local constant support (#180612)

This is mostly to support Swift `let`, but I found a way to get MSVC to
emit a local `S_CONSTANT` (see test).

I saw the note about `MakeConstantLocalExpression` at
https://github.com/llvm/llvm-project/blob/2e34fecf02962e4c8477ca88cc5ac9386a0f76bb/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp#L2177
but couldn't repro with local or global (emitted as `S_LDATA32` in both
cases).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list