From 5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 10 Jun 2016 05:09:12 +0000 Subject: Add support for writing through StreamInterface. This adds method and tests for writing to a PDB stream. With this, even a PDB stream which is discontiguous can be treated as a sequential stream of bytes for the purposes of writing. Reviewed By: ruiu Differential Revision: http://reviews.llvm.org/D21157 llvm-svn: 272369 --- llvm/lib/DebugInfo/CodeView/CodeViewError.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/DebugInfo/CodeView/CodeViewError.cpp') diff --git a/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp b/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp index 4db6b2941a6e..aad1d8b25cd0 100644 --- a/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp +++ b/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp @@ -31,6 +31,8 @@ public: "bytes."; case cv_error_code::corrupt_record: return "The CodeView record is corrupted."; + case cv_error_code::operation_unsupported: + return "The requested operation is not supported."; } llvm_unreachable("Unrecognized cv_error_code"); } -- cgit v1.2.3