[PATCH] Do not pass a superblock to PDBFileBuilder

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 10:01:37 PDT 2016


https://reviews.llvm.org/D25108

On Thu, Sep 29, 2016 at 1:17 PM, Rui Ueyama <ruiu at google.com> wrote:

> Phab is not up yet, so I attached a patch to this mail.
>
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/19c98ef6/attachment.html>


More information about the llvm-commits mailing list