[all-commits] [llvm/llvm-project] 39d5c6: [llvm-pdbutil] Map enums in bitflags for symbols i...

Nerixyz via All-commits all-commits at lists.llvm.org
Wed Sep 9 07:56:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39d5c6238e0b4430c7f5256d689604c19ece7666
      https://github.com/llvm/llvm-project/commit/39d5c6238e0b4430c7f5256d689604c19ece7666
  Author: Nerixyz <nerixdev at outlook.de>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M llvm/include/llvm/DebugInfo/CodeView/CodeView.h
    M llvm/include/llvm/DebugInfo/CodeView/EnumTables.h
    M llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
    M llvm/lib/DebugInfo/CodeView/EnumTables.cpp
    M llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp
    A llvm/test/tools/llvm-pdbutil/compile3sym.yaml
    A llvm/test/tools/llvm-pdbutil/frameprocsym.yaml

  Log Message:
  -----------
  [llvm-pdbutil] Map enums in bitflags for symbols in YAML (#215887)

Both `S_COMPILE3` and `S_FRAMEPROC` have bitflags that also contain
non-bitflag enums. For `S_COMPILE3`, the lower eight bits represent the
language and for `S_FRAMEPROC` there are bits in the middle representing
the frame pointer registers for variables and parameters.

In both cases, the values of the enums were not present in the generated
YAML.
Mapping this in YAML is a bit complicated, because we can't give
`yaml::IO` a reference to the flags. I used local variables and a check
if we're reading to re-assemble the flags.



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