diff options
| author | Zachary Turner <zturner@google.com> | 2016-07-22 15:46:37 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-07-22 15:46:37 +0000 |
| commit | d218c261247edb8b44132fcff3588a67494effb6 (patch) | |
| tree | a0f8928f13397f9e1491638ca3a040241e96f4d1 /llvm/lib/DebugInfo/CodeView/StreamWriter.cpp | |
| parent | b772151a17a508355ad46db63d13da1dbec32b09 (diff) | |
| download | bcm5719-llvm-d218c261247edb8b44132fcff3588a67494effb6.tar.gz bcm5719-llvm-d218c261247edb8b44132fcff3588a67494effb6.zip | |
[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
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/StreamWriter.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/StreamWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |

