summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-09 00:53:59 +0000
committerZachary Turner <zturner@google.com>2017-06-09 00:53:59 +0000
commit28c22c83e3f54638d0eb5383aec72c2c5afb0a36 (patch)
treed017bd4b053791eb30ffa56eb70377a243a8b3d4 /llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
parent85c607ea56bffc7a6dadb587b2abd320e70bf4fa (diff)
downloadbcm5719-llvm-28c22c83e3f54638d0eb5383aec72c2c5afb0a36.tar.gz
bcm5719-llvm-28c22c83e3f54638d0eb5383aec72c2c5afb0a36.zip
[pdb] Don't crash on unknown debug subsections.
More and more unknown debug subsection kinds are being discovered so we should make it possible to dump these and display the bytes. llvm-svn: 305041
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp b/llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
index eed8edac283..e9124e68fe8 100644
--- a/llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
+++ b/llvm/lib/DebugInfo/CodeView/DebugSubsectionRecord.cpp
@@ -34,19 +34,6 @@ Error DebugSubsectionRecord::initialize(BinaryStreamRef Stream,
DebugSubsectionKind Kind =
static_cast<DebugSubsectionKind>(uint32_t(Header->Kind));
- switch (Kind) {
- case DebugSubsectionKind::FileChecksums:
- case DebugSubsectionKind::Lines:
- case DebugSubsectionKind::InlineeLines:
- case DebugSubsectionKind::CrossScopeExports:
- case DebugSubsectionKind::CrossScopeImports:
- case DebugSubsectionKind::Symbols:
- case DebugSubsectionKind::StringTable:
- case DebugSubsectionKind::FrameData:
- break;
- default:
- llvm_unreachable("Unexpected debug fragment kind!");
- }
if (auto EC = Reader.readStreamRef(Info.Data, Header->Length))
return EC;
Info.Container = Container;
OpenPOWER on IntegriCloud