[PATCH] D19752: ELF: New symbol table design.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 30 16:15:36 PDT 2016
On 30 April 2016 at 19:01, Rui Ueyama <ruiu at google.com> wrote:
> On Sat, Apr 30, 2016 at 12:34 PM, Rafael EspĂndola
> <rafael.espindola at gmail.com> wrote:
>>
>> > - void parse();
>> > -
>> > - llvm::MutableArrayRef<LazyObject> getLazySymbols() { return
>> > LazySymbols; }
>> > + void parse(SymbolTableBase *Symtab);
>> >
>> > ----------------
>> > Can we merge SymbolTableBase with SymbolTable<ELFT> if you template
>> > this, ArchiveFile::parse and BitcodeFile::parse functions?
>>
>> I assume these vectors make it hard:
>>
>> std::vector<std::unique_ptr<ObjectFile<ELFT>>> ObjectFiles;
>> std::vector<std::unique_ptr<SharedFile<ELFT>>> SharedFiles;
>
>
> I was suggesting defining only SymbolTable<ELFT> and remove SymbolTableBase.
But then having a global pointer to it is somewhat inconvenient.
Cheers,
Rafael
More information about the llvm-commits
mailing list