This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Use uint64_t for getSize() instead of size_t
ClosedPublic

Authored by int3 on Jun 16 2020, 5:31 PM.

Details

Summary

So things work on 32-bit machines. (@vzakhari reported the
breakage starting from D80177).

Diff Detail

Event Timeline

int3 created this revision.Jun 16 2020, 5:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2020, 5:31 PM

Thank you! The patch does not build, since some CPP definitions are still using size_t.

FYI, the tests pass with additional changes in lld/MachO/SyntheticSections.cpp.

int3 added a comment.Jun 16 2020, 6:30 PM

Apologies, I don't have a 32-bit machine here to test things out on... hope it works this time, if not feel free to commandeer

Should be working now. Thanks!

vzakhari accepted this revision.Jun 16 2020, 6:40 PM
This revision is now accepted and ready to land.Jun 16 2020, 6:40 PM
MaskRay accepted this revision.Jun 16 2020, 6:41 PM
This revision was automatically updated to reflect the committed changes.