diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-11-08 15:27:56 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-11-08 15:27:56 +0000 |
commit | 140b60b42e92daa02621ec13ebdc691f157b1e99 (patch) | |
tree | aea8894e0a6c088bacdf1a5b13e154d7b0d15e06 /gcc/tree.h | |
parent | 8f4f2f295ad85cf42ac03c94549b5341e4d331c8 (diff) | |
download | gcc-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)); |