[PATCH] D22693: More strongly separate the PDB reading interfaces and PDB writing interfaces

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 14:13:18 PDT 2016


zturner added a comment.

Just to clarify, here's a diagram:

        BytesFromFirstBlock
  --------=============----------------------------------------------------------------------------------------------------------
  |       x            |                    |                    |                    |         y          |                    |
  -------------------------------------------------------------------------------------------------------------------------------
                       |                     NumAdditionalBlocks                                           |

`BytesFromFirstBlock` is therefore equal to `BlockSize - OffsetInBlock`, and `NumAdditionalBlocks is however many bytes are left over, rounded up to the block size, divided by the block size.


https://reviews.llvm.org/D22693





More information about the llvm-commits mailing list