diff options
| author | Zachary Turner <zturner@google.com> | 2016-06-10 05:09:12 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-06-10 05:09:12 +0000 |
| commit | 5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd (patch) | |
| tree | 463ec56d93f2cc3a2ea42a1d798809a5290020ab /llvm/lib/DebugInfo/PDB/Raw/RawError.cpp | |
| parent | 6a77a1c01f5f3f76546afd97c9aa1d2747bb7b6e (diff) | |
| download | bcm5719-llvm-5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd.tar.gz bcm5719-llvm-5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd.zip | |
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
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/RawError.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/RawError.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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"); } |

