handle <local-source-name> in demangler

Ian Lance Taylor iant@google.com
Fri Nov 10 07:33:00 GMT 2006


Geoffrey Keating <geoffk@apple.com> writes:

> > It's not immediately clear to me that you only need to change
> > <unqualified-name>.  After all, you can have classes that are local to
> > a file as well, so with -combine you can have duplicate X::Y::j names.
> > How are you planning to handle that?  Are you sure you don't need a
> > <discriminator> case for <prefix>?
> 
> I don't know what you mean by "classes that are local to a file".  If
> you have a class named 'j' in namespace X::Y in two different files,
> there is only one class and it is the same in both files.  (This is
> true even if X or Y are classes instead of name spaces.)

You're right, of course, sorry about that.

What if you just automatically create an anonymous namespace for
static functions with nested classes/functions?

Ian



More information about the Binutils mailing list