This is an archive of the discontinued LLVM Phabricator instance.

[lld/coff] Add parsing for /pdbpagesize: flag
ClosedPublic

Authored by thakis on Oct 30 2021, 8:25 AM.

Details

Summary

It's not used for anything yet, but we now accept /pdbpagesize:4096
(the default behavior) and we give arguably more useful diagnostics
for other values.

Diff Detail

Event Timeline

thakis created this revision.Oct 30 2021, 8:25 AM
thakis requested review of this revision.Oct 30 2021, 8:25 AM
thakis updated this revision to Diff 383592.Oct 30 2021, 8:36 AM

slightly more

Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2021, 8:36 AM
thakis updated this revision to Diff 383594.Oct 30 2021, 8:43 AM

slightly more test

hans accepted this revision.Oct 31 2021, 11:59 AM

lgtm

Feel free to ignore the comment.

lld/COFF/Config.h
127

unsigned is probably more common LLVM-style (like ltoo or ltoPartitions), or maybe even size_t (like wordsize).

This revision is now accepted and ready to land.Oct 31 2021, 11:59 AM

Thanks!

lld/COFF/Config.h
127

Given that this only stores a very limited set of small values, int has the advantage that writing 4096 instead of 4096u doesn't give you sign conversion warnings. So I (very weakly) prefer this here.

This revision was automatically updated to reflect the committed changes.