1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/lib/DebugInfo/MSF
Rui Ueyama d0fef82d91 Do not pass a superblock to PDBFileBuilder.
When we create a PDB file using PDBFileBuilder, the information
in the superblock, such as the size of the resulting file, is not
available.

Previously, PDBFileBuilder::initialize took a superblock assuming
that all the members of the struct are correct. That is useful when
you want to restore the exact information from a YAML file, but
that's probably the only use case in which that is useful.
When we are creating a PDB file on the fly, we have to backfill the
members.

This patch redefines PDBFileBuilder::initialize to take only a
block size. Now all the other members are left as default values,
so that they'll be updated when commit() is called.

Differential Revision: https://reviews.llvm.org/D25108

llvm-svn: 282944
2016-09-30 20:52:12 +00:00
..
CMakeLists.txt [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
LLVMBuild.txt [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
MappedBlockStream.cpp [pdb] Print out some more info when dumping a raw stream. 2016-09-09 19:00:49 +00:00
MSFBuilder.cpp Do not pass a superblock to PDBFileBuilder. 2016-09-30 20:52:12 +00:00
MSFCommon.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
MSFError.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
StreamReader.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00
StreamWriter.cpp [msf] Resubmit "Rename Msf -> MSF". 2016-07-29 20:56:36 +00:00