[PATCH] D25107: Expose PDBFileBuilder::finalizeMsfLayout.

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


https://reviews.llvm.org/D25107

On Fri, Sep 30, 2016 at 9:55 AM, Rui Ueyama <ruiu at google.com> wrote:

> ruiu created this revision.
> ruiu added a reviewer: zturner.
> ruiu added a subscriber: llvm-commits.
>
> In many cases, clients of PDBFileBuilder generally needs to know
> the exact file size before calling PDBFileBuilder::commit() so that
> they can create output files with the exact sizes (this is needed
> if you are using mmap'ed IO.)
>
> This patch exposes finalizeMsfLayout and defines getMsf which
> returns a MSFLayout object. Because MSFLayout object contains a
> superblock which in turn contains the number of blocks, we can
> compute the total file size by calling these functions.
>
>
> https://reviews.llvm.org/D25107
>
> Files:
>   include/llvm/DebugInfo/MSF/MSFCommon.h
>   include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h
>   lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/4ef5900a/attachment.html>


More information about the llvm-commits mailing list