summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-17 00:15:27 +0000
committerZachary Turner <zturner@google.com>2017-03-17 00:15:27 +0000
commit42cb87f40126f272ff006679f64670066e250b70 (patch)
tree0645945dbc5e496edb1910b94353d63b5f5b50e5 /llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
parentda9352c173957733aab8cd2f580afe4bd3e0824a (diff)
downloadbcm5719-llvm-42cb87f40126f272ff006679f64670066e250b70.tar.gz
bcm5719-llvm-42cb87f40126f272ff006679f64670066e250b70.zip
[PDB] It is not an error getting the "Invalid" Annotation opcode.
The linker can insert invalid opcodes to indicate padding bytes, and we should not fail in this case. llvm-svn: 298016
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
index fd54fba13c7..134471e81ca 100644
--- a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
+++ b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
@@ -468,8 +468,8 @@ Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR,
for (auto &Annotation : InlineSite.annotations()) {
switch (Annotation.OpCode) {
case BinaryAnnotationsOpCode::Invalid:
- return llvm::make_error<CodeViewError>(
- "Invalid binary annotation opcode!");
+ W.printString("(Annotation Padding)");
+ break;
case BinaryAnnotationsOpCode::CodeOffset:
case BinaryAnnotationsOpCode::ChangeCodeOffset:
case BinaryAnnotationsOpCode::ChangeCodeLength:
OpenPOWER on IntegriCloud