1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/lib/DebugInfo/CodeView
Zachary Turner efca032046 [codeview] Have visitTypeBegin return the record type.
Previously we were assuming that any visitation of types would
necessarily be against a type we had binary data for.  Reasonable
assumption when were just reading PDBs and dumping them, but once
we start writing PDBs from Yaml this breaks down, because we have
no binary data yet, only Yaml, and from that we need to read the
record kind and perform the switch based on that.

So this patch does that.  Instead of having the visitor switch
on the kind that is already in the CVType record, we change the
visitTypeBegin() method to return the Kind, and switch on the
returned value.  This way, the default implementation can still
return the value from the CVType, but the implementation which
visits Yaml records and serializes binary PDB type records can
use the field in the Yaml as the source of the switch.

llvm-svn: 280307
2016-08-31 23:14:31 +00:00
..
CMakeLists.txt Remove unused translation unit. 2016-08-23 20:08:02 +00:00
CodeViewError.cpp [CodeView] Decouple record deserialization from visitor dispatch. 2016-08-05 21:45:34 +00:00
CVTypeVisitor.cpp [codeview] Have visitTypeBegin return the record type. 2016-08-31 23:14:31 +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
Line.cpp
ListRecordBuilder.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
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 [codeview] Have visitTypeBegin return the record type. 2016-08-31 23:14:31 +00:00
TypeRecord.cpp Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
TypeRecordBuilder.cpp [CodeView] Healthy paranoia around strings 2016-06-24 19:34:41 +00:00
TypeStreamMerger.cpp [codeview] Have visitTypeBegin return the record type. 2016-08-31 23:14:31 +00:00
TypeTableBuilder.cpp [CodeView] Decouple record deserialization from visitor dispatch. 2016-08-05 21:45:34 +00:00