This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Refactor of tls_index implementation for tls local dynamic model.
ClosedPublic

Authored by grimar on Dec 1 2015, 8:18 AM.

Details

Summary

Patch contains the next 2 changes:

  1. static variable Out<ELFT>::LocalModuleTlsIndexOffset moved to Out<ELFT>::Got. At fact there is no meaning for it to be separated from GOT class because at each place of using it anyways needs to call GOT`s getVA(). Also it is impossible to have that offset and not have GOT.
  1. addLocalModuleTlsIndex -> addLocalModelTlsIndex (word "Module" changed to "Model"). Not sure was it a mistype or not but I think that update is closer to Urlich terminology.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 41516.Dec 1 2015, 8:18 AM
grimar retitled this revision from to [ELF] - Refactor of tls_index implementation for tls local dynamic model..
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
ruiu accepted this revision.Dec 1 2015, 9:14 AM
ruiu edited edge metadata.

LGTM. Nice cleanup!

This revision is now accepted and ready to land.Dec 1 2015, 9:14 AM
This revision was automatically updated to reflect the committed changes.