aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-11-08 15:27:56 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-11-08 15:27:56 +0000
commit140b60b42e92daa02621ec13ebdc691f157b1e99 (patch)
treeaea8894e0a6c088bacdf1a5b13e154d7b0d15e06 /gcc/tree.h
parent8f4f2f295ad85cf42ac03c94549b5341e4d331c8 (diff)
downloadgcc-140b60b42e92daa02621ec13ebdc691f157b1e99.zip
gcc-140b60b42e92daa02621ec13ebdc691f157b1e99.tar.gz
gcc-140b60b42e92daa02621ec13ebdc691f157b1e99.tar.bz2
tree.h (get_containing_scope): Declare it.
* tree.h (get_containing_scope): Declare it. * tree.c (get_containing_scope): New fucntion. (decl_function_context): Use it. * toplev.c (rest_of_compilation): Use get_containing_scope. From-SVN: r30449
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 477708e..4af3a1d 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1950,6 +1950,11 @@ extern tree get_inner_reference PROTO((tree, int *, int *, tree *,
enum machine_mode *, int *,
int *, int *));
+/* Given a DECL or TYPE, return the scope in which it was declared, or
+ NUL_TREE if there is no containing scope. */
+
+extern tree get_containing_scope PROTO((tree));
+
/* Return the FUNCTION_DECL which provides this _DECL with its context,
or zero if none. */
extern tree decl_function_context PROTO((tree));