Patch splits In<ELFT> into 2 classes: one for non-templated sections,
second contains ELFT templated ones.
That allows to code that was detemplated to access non-templated sections freely,
and should open road for futher detemplation proccess.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Probably deriving In<ELFT> from non-templated structure would be easier?
template <class ELFT> struct In : InBase { .... };
Comment Actions
This removes template parameter from only three sections among 27 sections, and now you have to append X everywhere. Is this really worth it? I wonder if we should just wait for C++14 template variable.
Comment Actions
After today there are 13 such sections. The approach of splitting In structure is itself very usefull. I showed that in D30982.
I applied @evgeny777 suggestion to have base and derived class to reduce amount of changes required.