1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/tools/llvm-pdbdump
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
..
fuzzer Make PDBFile take a StreamInterface instead of a MemBuffer. 2016-06-10 05:10:19 +00:00
BuiltinDumper.cpp Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
BuiltinDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
ClassDefinitionDumper.cpp Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
ClassDefinitionDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
CMakeLists.txt Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
CodeViewYaml.cpp [codeview] Have visitTypeBegin return the record type. 2016-08-31 23:14:31 +00:00
CodeViewYaml.h [codeview] Have visitTypeBegin return the record type. 2016-08-31 23:14:31 +00:00
CompilandDumper.cpp Make llvm-pdbdump print column info when available 2016-08-17 23:01:03 +00:00
CompilandDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
EnumDumper.cpp Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
EnumDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
ExternalSymbolDumper.cpp Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
ExternalSymbolDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
FunctionDumper.cpp Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
FunctionDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
LinePrinter.cpp Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
LinePrinter.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
llvm-pdbdump.cpp Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
llvm-pdbdump.h Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
LLVMBuild.txt [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
LLVMOutputStyle.cpp [CodeView] Decouple record deserialization from visitor dispatch. 2016-08-05 21:45:34 +00:00
LLVMOutputStyle.h [CodeView] Decouple record deserialization from visitor dispatch. 2016-08-05 21:45:34 +00:00
OutputStyle.h Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
PdbYaml.cpp [codeview] Add TypeVisitorCallbackPipeline. 2016-08-31 21:42:26 +00:00
PdbYaml.h Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
TypedefDumper.cpp Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
TypedefDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
TypeDumper.cpp Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
TypeDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
VariableDumper.cpp Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
VariableDumper.h Move pdb code into pdb namespace. 2016-05-04 20:32:13 +00:00
YAMLOutputStyle.cpp Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00
YAMLOutputStyle.h Resubmit "Write the TPI stream from a PDB to Yaml." 2016-08-18 16:49:29 +00:00