[llvm-pdbutil] Don't crash when printing unknown CodeView type records
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 7 Jan 2021 20:41:47 +0000 (15:41 -0500)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 7 Jan 2021 20:44:55 +0000 (15:44 -0500)
commitce7f30b2a874386a0ce089c98327acb65e87b04d
tree46d577291cfc349066701060aefd64a66d23927c
parent6e7101530dae78efd7b5cdffc1338790ed3e5705
[llvm-pdbutil] Don't crash when printing unknown CodeView type records

Differential Revision: https://reviews.llvm.org/D93720
llvm/test/tools/llvm-pdbutil/Inputs/unknown-record.obj [new file with mode: 0644]
llvm/test/tools/llvm-pdbutil/unknown-records.test [new file with mode: 0644]
llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
llvm/tools/llvm-pdbutil/FormatUtil.cpp
llvm/tools/llvm-pdbutil/FormatUtil.h