[PATCH] D30976: [ELF] - Detemplate GdbIndexSection.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 16:39:15 PDT 2017


> -    ArrayRef<InputSectionBase *> Sections =
> -        Sec->template getFile<ELFT>()->getSections();
> -
> +    ArrayRef<InputSectionBase *> Sections = Sec->File->getSections();

OK, so this is why you need to move the sections array.

Can you leave this function and its caller as templates?

Cheers,
Rafael


More information about the llvm-commits mailing list