This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Prepare GnuHashTableSection<ELFT> for detemplation.
ClosedPublic

Authored by grimar on Mar 21 2017, 5:23 AM.

Details

Summary

This patch changes GnuHashTableSection implementation
to avoid depend on uintX_t and other ELFT stuff, reducing amount of
changes for following patch(es).

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Mar 21 2017, 5:23 AM
ruiu added inline comments.Mar 21 2017, 2:32 PM
ELF/SyntheticSections.cpp
1493–1494 ↗(On Diff #92471)

Just like writeUint, you want to define readUint.

1514 ↗(On Diff #92471)

&Buckets[I] -> Buckets + I

1525–1526 ↗(On Diff #92471)

&Values[I++] -> Values + I++

grimar updated this revision to Diff 92611.Mar 22 2017, 2:59 AM
  • Addressed review comments, rebased.
ELF/SyntheticSections.cpp
1493–1494 ↗(On Diff #92471)

Done.

1514 ↗(On Diff #92471)

Done.

1525–1526 ↗(On Diff #92471)

Done.

ruiu accepted this revision.Mar 28 2017, 11:26 AM

LGTM

This revision is now accepted and ready to land.Mar 28 2017, 11:26 AM
This revision was automatically updated to reflect the committed changes.