[PATCH] D19752: ELF: New symbol table design.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 30 16:16:45 PDT 2016


On Sat, Apr 30, 2016 at 4:15 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> 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.
>

Why? We can do like we do for Out, no?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160430/29c45854/attachment.html>


More information about the llvm-commits mailing list