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/PDB/Raw/RawError.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/DebugInfo/PDB/Raw/RawError.cpp') diff --git a/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp b/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp index bcfa55a8b01..07aebb7d739 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp @@ -28,6 +28,10 @@ public: return "The specified stream could not be loaded."; case raw_error_code::index_out_of_bounds: return "The specified item does not exist in the array."; + case raw_error_code::invalid_block_address: + return "The specified block address is not valid."; + case raw_error_code::not_writable: + return "The PDB does not support writing."; } llvm_unreachable("Unrecognized raw_error_code"); } -- cgit v1.2.3