Compile speed improvement.

* name-lookup.c (namespace_binding): Omit alias check for global namespace.

From-SVN: r91575
This commit is contained in:
Matt Austern 2004-12-01 19:44:48 +00:00 committed by Matt Austern
parent 986583fd5d
commit 8245c1946e
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-12-01 Matt Austern <austern@apple.com>
* name-lookup.c (namespace_binding): Omit alias check for global namespace.
2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
PR c++/18729

View file

@ -2735,7 +2735,10 @@ namespace_binding (tree name, tree scope)
if (scope == NULL)
scope = global_namespace;
scope = ORIGINAL_NAMESPACE (scope);
else
/* Unnecessary for the global namespace because it can't be an alias. */
scope = ORIGINAL_NAMESPACE (scope);
binding = cxx_scope_find_binding_for_name (NAMESPACE_LEVEL (scope), name);
return binding ? binding->value : NULL_TREE;