Compile speed improvement.
* name-lookup.c (namespace_binding): Omit alias check for global namespace. From-SVN: r91575
This commit is contained in:
parent
986583fd5d
commit
8245c1946e
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue