aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-06-10 05:09:12 +0000
committerZachary Turner <zturner@google.com>2016-06-10 05:09:12 +0000
commit5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd (patch)
tree463ec56d93f2cc3a2ea42a1d798809a5290020ab /llvm/lib/DebugInfo/CodeView/CodeViewError.cpp
parent6a77a1c01f5f3f76546afd97c9aa1d2747bb7b6e (diff)
downloadllvm-5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd.zip
llvm-5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd.tar.gz
llvm-5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd.tar.bz2
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/CodeView/CodeViewError.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/CodeViewError.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp b/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp
index 4db6b29..aad1d8b 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");
}