[cfe-dev] About Entity

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Jul 5 03:33:35 PDT 2010


Hi Zhongxing,

On Mon, Jul 5, 2010 at 3:15 AM, Zhongxing Xu <xuzhongxing at gmail.com> wrote:

> Hi Argiris,
>
> I have an idea to let the Entity reflect the linkage of a name. If a
> name has external linkage, we make it an 'external' Entity. If a name
> has internal linkage, we make it an 'internal' Entity. If a name has
> no linkage, we make it an invalid Entity. What do you think?
>

Makes sense; sounds good!

-Argiris


>
> On Fri, Jul 2, 2010 at 8:48 PM, Argyrios Kyrtzidis <akyrtzi at gmail.com>
> wrote:
> > I would lean slightly to 'internal' for generality, so that functions
> that
> > handle them can work on both external and local decls, but I don't have a
> > strong opinion on this.
> > But if the way is to not make them entities at all, then the concept of
> > internal entities should be removed.
> > -Argiris
> >
> > On Fri, Jul 2, 2010 at 1:07 PM, Zhongxing Xu <xuzhongxing at gmail.com>
> wrote:
> >>
> >> Currently we treat all local VarDecls and struct FieldDecls as
> >> external Entity. Shall we create them as internal Entity or make them
> >> invalid Entity? I feel that it does not make too much sense to make
> >> them Entities. But making them internal Entities seems no harm.
> >>
> >> - Zhongxing
> >> _______________________________________________
> >> cfe-dev mailing list
> >> cfe-dev at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100705/26f4ec29/attachment.html>


More information about the cfe-dev mailing list