[PATCH] D25107: Expose PDBFileBuilder::finalizeMsfLayout.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 09:55:07 PDT 2016


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 --------------
A non-text attachment was scrubbed...
Name: D25107.73077.patch
Type: text/x-patch
Size: 5084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/012bbb20/attachment.bin>


More information about the llvm-commits mailing list