diff options
author | Nikita <69168929+nikitalita@users.noreply.github.com> | 2025-06-02 15:08:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-02 15:08:52 -0700 |
commit | 14c2fa27aef3db4fc657241bde18995a111a4858 (patch) | |
tree | 5438fb45e47b18682c2027ddd4ddad20a0c5e324 /llvm/lib/IR/Module.cpp | |
parent | 741136a8ac924462da0e786a209e1bd4b9b247c6 (diff) | |
download | llvm-14c2fa27aef3db4fc657241bde18995a111a4858.zip llvm-14c2fa27aef3db4fc657241bde18995a111a4858.tar.gz llvm-14c2fa27aef3db4fc657241bde18995a111a4858.tar.bz2 |
[llvm-pdbutil] Fix register enum field dumping/parsing (#82299)
This fixes a bug where parsing PDBs with usages of register enums were
asserting.
The main problem is that printing out the code view register enums are
taken care of here:
https://github.com/nikitalita/llvm-project/blob/e4888a92402f53000a3a5e79d3792c034fc2f343/llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp#L152
Which requires a COFF::header in the IO context for the machine type,
which we didn't have when dumping a pdb or parsing a yaml file. So, we
make a fake one with the machine type.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions