[llvm-dev] Reducing confusion around isUndefined()
James Henderson via llvm-dev
llvm-dev at lists.llvm.org
Fri Oct 20 11:18:33 PDT 2017
I ran into this a couple of months ago, when doing something else, but was
too caught up in that so didn't get around to raising it. I agree that
converting the symbols from lazy after we're done with them makes sense. It
would also allow us to simplify a number of places where we check for !Lazy
&& !Undefined or similar.
On 14 October 2017 at 07:03, Rafael Avila de Espindola via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Shoaib Meenai <smeenai at fb.com> writes:
>
> > (switching list from llvm-commits to llvm-dev, which seems more
> appropriate here)
> Thanks.
>
> > I think I'm not too excited about adding more predicates or inheritance.
> Lazy symbols are useful only when we are adding files to the symbol table.
> After that, there's no use of them. So maybe we can just visit all symbols
> at some point after reading all files but before writeResult to nuke all
> Lazy symbols (by replacing local undefined symbol or something), so that we
> don't have to think about it after that point.
>
> True. We should be able to either remove or convert to undef every lazy
> symbol after we read all the files.
>
> Cheers,
> Rafael
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171020/b317d77a/attachment.html>
More information about the llvm-dev
mailing list