llvm-project/llvm/lib/DebugInfo/PDB/Raw
Zachary Turner 9ba31a5efe [pdb] Pass CVRecord's through the visitor as non-const references.
This simplifies a lot of code, and will actually be necessary for
an upcoming patch to serialize TPI record hash values.

The idea before was that visitors should be examining records, not
modifying them.  But this is no longer true with a visitor that
constructs a CVRecord from Yaml.  To handle this until now, we
were doing some fixups on CVRecord objects at a higher level, but
the code is really awkward, and it makes sense to just have the
visitor write the bytes into the CVRecord.  In doing so I uncovered
a few bugs related to `Data` and `RawData` and fixed those.

Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D24362

llvm-svn: 281067
2016-09-09 18:03:39 +00:00
..
DbiStream.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
DbiStreamBuilder.cpp pdbdump: Fix crash bug. 2016-08-03 23:43:23 +00:00
EnumTables.cpp [pdb] Parse and dump section map and section contribs 2016-06-02 05:07:49 +00:00
Hash.cpp Implement pdb::hashBufferV8 hash function. 2016-06-16 13:48:16 +00:00
InfoStream.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
InfoStreamBuilder.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
ModInfo.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
ModStream.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
NameHashTable.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
NameMap.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
NameMapBuilder.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
PDBFile.cpp [msf] Make FPM reader use MappedBlockStream. 2016-08-03 16:53:21 +00:00
PDBFileBuilder.cpp [pdb] Write PDB TPI Stream from Yaml. 2016-09-09 17:46:17 +00:00
PublicsStream.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
RawError.cpp [pdb] Round-trip module & file info to/from YAML. 2016-07-22 15:46:37 +00:00
RawSession.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
SymbolStream.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
TpiStream.cpp [pdb] Pass CVRecord's through the visitor as non-const references. 2016-09-09 18:03:39 +00:00
TpiStreamBuilder.cpp [pdb] Write PDB TPI Stream from Yaml. 2016-09-09 17:46:17 +00:00