From fa2ea33de80cd95b2a1d1a759b2271cb8d7e32db Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 27 Sep 2010 15:46:07 +0000 Subject: objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT. 2010-09-27 Richard Guenther * objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT. (objc_is_global_reference_p): Use DECL_FILE_SCOPE_P. From-SVN: r164652 --- gcc/objc/objc-act.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/objc/objc-act.c') diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index e988906..e4483da7 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -2858,8 +2858,8 @@ objc_get_class_reference (tree ident) : TREE_TYPE (ident)); #ifdef OBJCPLUS - if (TYPE_P (ident) && TYPE_CONTEXT (ident) - && TYPE_CONTEXT (ident) != global_namespace) + if (TYPE_P (ident) + && CP_TYPE_CONTEXT (ident) != global_namespace) local_scope = true; #endif @@ -3251,7 +3251,7 @@ objc_is_global_reference_p (tree expr) return (TREE_CODE (expr) == INDIRECT_REF || TREE_CODE (expr) == PLUS_EXPR ? objc_is_global_reference_p (TREE_OPERAND (expr, 0)) : DECL_P (expr) - ? (!DECL_CONTEXT (expr) || TREE_STATIC (expr)) + ? (DECL_FILE_SCOPE_P (expr) || TREE_STATIC (expr)) : 0); } -- cgit v1.1