The linker can insert invalid opcodes to indicate padding
bytes, and we should not fail in this case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298016
91177308-0d34-0410-b5e6-
96231b3b80d8
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: