From ab58ae8730186d46ca90793de89c5dbb19901834 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 30 Jun 2016 17:43:00 +0000 Subject: [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 --- llvm/lib/DebugInfo/CodeView/ByteStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/DebugInfo/CodeView/ByteStream.cpp') 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 uint32_t ByteStream::getLength() const { return Data.size(); } +template Error ByteStream::commit() const { + return Error::success(); +} + template StringRef ByteStream::str() const { const char *CharData = reinterpret_cast(Data.data()); return StringRef(CharData, Data.size()); -- cgit v1.2.3