From d218c261247edb8b44132fcff3588a67494effb6 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 22 Jul 2016 15:46:37 +0000 Subject: [pdb] Round-trip module & file info to/from YAML. This implements support for writing compiland and compiland source file info to a binary PDB. This is tested by adding support for dumping these fields from an existing PDB to yaml, reading them back in, and dumping them again and verifying the values are as expected. llvm-svn: 276426 --- llvm/lib/DebugInfo/CodeView/StreamWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/DebugInfo/CodeView/StreamWriter.cpp') diff --git a/llvm/lib/DebugInfo/CodeView/StreamWriter.cpp b/llvm/lib/DebugInfo/CodeView/StreamWriter.cpp index f61c6b522f5..90eafbb9c83 100644 --- a/llvm/lib/DebugInfo/CodeView/StreamWriter.cpp +++ b/llvm/lib/DebugInfo/CodeView/StreamWriter.cpp @@ -54,7 +54,8 @@ Error StreamWriter::writeFixedString(StringRef Str) { Error StreamWriter::writeStreamRef(StreamRef Ref) { if (auto EC = writeStreamRef(Ref, Ref.getLength())) return EC; - Offset += Ref.getLength(); + // Don't increment Offset here, it is done by the overloaded call to + // writeStreamRef. return Error::success(); } -- cgit v1.2.3