[PATCH] D30933: [ELF] - Detemplate StringTableSection.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 05:48:56 PDT 2017


grimar created this revision.

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 all synthetic sections
and either move them out templated **In** struct or detemplate them
all and make **In** to be fully non-templated (not sure if latter is possible).


https://reviews.llvm.org/D30933

Files:
  ELF/SyntheticSections.cpp
  ELF/SyntheticSections.h
  ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30933.91701.patch
Type: text/x-patch
Size: 6822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170314/64b4ecab/attachment.bin>


More information about the llvm-commits mailing list