llvm-project/llvm/lib/DebugInfo/CodeView
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
..
CMakeLists.txt Remove unused translation unit. 2016-08-23 20:08:02 +00:00
CVTypeVisitor.cpp [pdb] Pass CVRecord's through the visitor as non-const references. 2016-09-09 18:03:39 +00:00
CodeViewError.cpp [CodeView] Decouple record deserialization from visitor dispatch. 2016-08-05 21:45:34 +00:00
EnumTables.cpp Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
FieldListRecordBuilder.cpp [CodeView] Decouple record deserialization from visitor dispatch. 2016-08-05 21:45:34 +00:00
LLVMBuild.txt [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
Line.cpp
ListRecordBuilder.cpp [codeview] Use the correct max CV record length of 0xFF00 2016-09-02 18:43:27 +00:00
MemoryTypeTableBuilder.cpp [codeview] Improve readability of type record assembly 2016-05-31 18:45:36 +00:00
MethodListRecordBuilder.cpp [codeview] Align class and print names of types 2016-05-13 19:37:07 +00:00
ModuleSubstream.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
ModuleSubstreamVisitor.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
RecordSerialization.cpp [CodeView] Use llvm::Error instead of std::error_code. 2016-08-04 19:39:55 +00:00
SymbolDumper.cpp [CodeView] Emit an appropriate symbol kind for globals 2016-07-06 21:07:47 +00:00
TypeDumper.cpp [pdb] Pass CVRecord's through the visitor as non-const references. 2016-09-09 18:03:39 +00:00
TypeRecord.cpp Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
TypeRecordBuilder.cpp [pdb] Write PDB TPI Stream from Yaml. 2016-09-09 17:46:17 +00:00
TypeStreamMerger.cpp [pdb] Pass CVRecord's through the visitor as non-const references. 2016-09-09 18:03:39 +00:00
TypeTableBuilder.cpp [pdb] Pass CVRecord's through the visitor as non-const references. 2016-09-09 18:03:39 +00:00