This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Detemplate StringTableSection.
ClosedPublic

Authored by grimar on Mar 14 2017, 5:48 AM.

Details

Summary

StringTableSection was <ELFT> templated previously,

It disallow to de-template code that uses it,
for example LinkerScript<ELFT>::discard uses it as:

if (S == In<ELFT>::ShStrTab)
  error("discarding .shstrtab section is not allowed");

It seems we can try to detemplate some of synthetic sections
and somehow make them available for non-templated calls.
(move out of In<ELFT> struct probably).

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Mar 14 2017, 5:48 AM
grimar edited the summary of this revision. (Show Details)Mar 14 2017, 6:01 AM
ruiu accepted this revision.Mar 14 2017, 10:27 AM

LGTM. Nice.

This revision is now accepted and ready to land.Mar 14 2017, 10:27 AM
This revision was automatically updated to reflect the committed changes.