[PATCH] D33475: [pdb] pad source file name buffer at the end instead of the beginning

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 11:36:43 PDT 2017


inglorion added a comment.

@amccarth, you raise a good point that I neglected to address before. I looked at changing the location we read from vs. changing the location we write to, and concluded that the location we read from is probably correct, because we haven't seen corrupted filenames in PDBs not generated by our tools, to my knowledge. Looking at the reference implementation, e.g. QueryFileInfo and QueryFileInfo2 have the alignment code after the code that deals with filenames. So it seems correct to write the filenames after the fileinfos, and then pad the subsection as necessary, rather than pad between the fileinfos and the filenames. The real proof will be once I actually get the filenames to be displayed by Microsoft's tools, but we're not quite there yet.


https://reviews.llvm.org/D33475





More information about the llvm-commits mailing list