diff options
author | Kresten Krab Thorup <krab@gcc.gnu.org> | 1994-08-19 15:36:22 +0000 |
---|---|---|
committer | Kresten Krab Thorup <krab@gcc.gnu.org> | 1994-08-19 15:36:22 +0000 |
commit | 4d4d7c0e7f1aff2c10d735ff809e2ea9744f171d (patch) | |
tree | 10f65fbffa9b84cc70b0b70b83fa98a16896d29f /gcc/objc | |
parent | 0059501924049e53b3a019bacfe12eff6a1827a3 (diff) | |
download | gcc-4d4d7c0e7f1aff2c10d735ff809e2ea9744f171d.zip gcc-4d4d7c0e7f1aff2c10d735ff809e2ea9744f171d.tar.gz gcc-4d4d7c0e7f1aff2c10d735ff809e2ea9744f171d.tar.bz2 |
(build_selector_translation_table): Reset current_function_decl after hack_function_prototype build it.
(build_selector_translation_table): Reset
current_function_decl after hack_function_prototype build it.
(build_module_descriptor): Return constructor name from functions
decl_rtl.
From-SVN: r7944
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index f4ed5fd..b62ac123 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1569,10 +1569,11 @@ build_module_descriptor () TREE_PUBLIC (current_function_decl) = 1; + function_decl = current_function_decl; finish_function (0); /* Return the name of the constructor function. */ - return IDENTIFIER_POINTER (init_function_name); + return XSTR (XEXP (DECL_RTL (function_decl), 0), 0); } } @@ -1787,6 +1788,7 @@ build_selector_translation_table () initlist = build_constructor (TREE_TYPE (UOBJC_SELECTOR_TABLE_decl), nreverse (initlist)); finish_decl (UOBJC_SELECTOR_TABLE_decl, initlist, NULLT); + current_function_decl = NULLT; } } |