Commit fa2ea33d by Richard Guenther Committed by Richard Biener

objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.

2010-09-27  Richard Guenther  <rguenther@suse.de>

	* objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.
	(objc_is_global_reference_p): Use DECL_FILE_SCOPE_P.

From-SVN: r164652
parent 1787f59e
2010-09-27 Richard Guenther <rguenther@suse.de>
* objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT.
(objc_is_global_reference_p): Use DECL_FILE_SCOPE_P.
2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com> 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-act.c: Removed historical, obsolete comment at the top of * objc-act.c: Removed historical, obsolete comment at the top of
......
...@@ -2858,8 +2858,8 @@ objc_get_class_reference (tree ident) ...@@ -2858,8 +2858,8 @@ objc_get_class_reference (tree ident)
: TREE_TYPE (ident)); : TREE_TYPE (ident));
#ifdef OBJCPLUS #ifdef OBJCPLUS
if (TYPE_P (ident) && TYPE_CONTEXT (ident) if (TYPE_P (ident)
&& TYPE_CONTEXT (ident) != global_namespace) && CP_TYPE_CONTEXT (ident) != global_namespace)
local_scope = true; local_scope = true;
#endif #endif
...@@ -3251,7 +3251,7 @@ objc_is_global_reference_p (tree expr) ...@@ -3251,7 +3251,7 @@ objc_is_global_reference_p (tree expr)
return (TREE_CODE (expr) == INDIRECT_REF || TREE_CODE (expr) == PLUS_EXPR return (TREE_CODE (expr) == INDIRECT_REF || TREE_CODE (expr) == PLUS_EXPR
? objc_is_global_reference_p (TREE_OPERAND (expr, 0)) ? objc_is_global_reference_p (TREE_OPERAND (expr, 0))
: DECL_P (expr) : DECL_P (expr)
? (!DECL_CONTEXT (expr) || TREE_STATIC (expr)) ? (DECL_FILE_SCOPE_P (expr) || TREE_STATIC (expr))
: 0); : 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment