diff options
author | Zachary Turner <zturner@google.com> | 2016-06-30 17:43:00 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-06-30 17:43:00 +0000 |
commit | ab58ae8730186d46ca90793de89c5dbb19901834 (patch) | |
tree | 6db5ef03aeaa4ccf42f1c97d450cba40bfb219d1 /llvm/lib/DebugInfo/CodeView/ByteStream.cpp | |
parent | a30bd1a1bccad66e39d46ffd8c8cb278d5ee17c9 (diff) | |
download | bcm5719-llvm-ab58ae8730186d46ca90793de89c5dbb19901834.tar.gz bcm5719-llvm-ab58ae8730186d46ca90793de89c5dbb19901834.zip |
[pdb] Re-add code to write PDB files.
Somehow all the functionality to write PDB files got removed,
probably accidentally when uploading the patch perhaps the wrong
one got uploaded. This re-adds all the code, as well as the
corresponding test.
llvm-svn: 274248
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/ByteStream.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/ByteStream.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/ByteStream.cpp b/llvm/lib/DebugInfo/CodeView/ByteStream.cpp index 83b2f8ec307..2c43bc6958d 100644 --- a/llvm/lib/DebugInfo/CodeView/ByteStream.cpp +++ b/llvm/lib/DebugInfo/CodeView/ByteStream.cpp @@ -62,6 +62,10 @@ template <bool Writable> uint32_t ByteStream<Writable>::getLength() const { return Data.size(); } +template <bool Writable> Error ByteStream<Writable>::commit() const { + return Error::success(); +} + template <bool Writable> StringRef ByteStream<Writable>::str() const { const char *CharData = reinterpret_cast<const char *>(Data.data()); return StringRef(CharData, Data.size()); |