OSDN Git Service

CodeView: Provide a .def file with the register ids
authorHans Wennborg <hans@hanshq.net>
Tue, 3 Oct 2017 18:27:22 +0000 (18:27 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 3 Oct 2017 18:27:22 +0000 (18:27 +0000)
commit0f3480d826f80a302eeb2e8600d2b70fe44f9573
tree5c96a586790d1e4d7cf875401829d7c8c1754013
parentf6c62f9ae3df60650c510e78c9cc541879559df1
CodeView: Provide a .def file with the register ids

The list of register ids was previously written out in a couple of dirrent
places. This puts it in a .def file and also adds a few more registers (e.g.
the x87 regs) which should lead to more readable dumps, but I didn't include
the whole list since that seems unnecessary.

X86_MC::initLLVMToSEHAndCVRegMapping is pretty ugly, but at least it's not
relying on magic constants anymore. The TODO of using tablegen still stands.

Differential revision: https://reviews.llvm.org/D38480

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314821 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/CodeView/CodeView.h
include/llvm/DebugInfo/CodeView/CodeViewRegisters.def [new file with mode: 0644]
include/llvm/module.modulemap
lib/DebugInfo/CodeView/EnumTables.cpp
lib/DebugInfo/PDB/PDBExtras.cpp
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
test/DebugInfo/COFF/fp-stack.ll
tools/llvm-pdbutil/MinimalSymbolDumper.cpp