diff options
Diffstat (limited to 'gcc/objcp/objcp-lang.c')
-rw-r--r-- | gcc/objcp/objcp-lang.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gcc/objcp/objcp-lang.c b/gcc/objcp/objcp-lang.c index fa674aa..fe2be66 100644 --- a/gcc/objcp/objcp-lang.c +++ b/gcc/objcp/objcp-lang.c @@ -1,5 +1,5 @@ /* Language-dependent hooks for Objective-C++. - Copyright 2005, 2007, 2008, 2010 Free Software Foundation, Inc. + Copyright 2005, 2007, 2008, 2010, 2011 Free Software Foundation, Inc. Contributed by Ziemowit Laski <zlaski@apple.com> This file is part of GCC. @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ - #include "config.h" #include "system.h" #include "coretypes.h" @@ -35,7 +34,6 @@ along with GCC; see the file COPYING3. If not see enum c_language_kind c_language = clk_objcxx; static void objcxx_init_ts (void); -static tree objcxx_eh_personality (void); /* Lang hooks common to C++ and ObjC++ are declared in cp/cp-objcp-common.h; consequently, there should be very few hooks below. */ @@ -48,10 +46,6 @@ static tree objcxx_eh_personality (void); #define LANG_HOOKS_GIMPLIFY_EXPR objc_gimplify_expr #undef LANG_HOOKS_INIT_TS #define LANG_HOOKS_INIT_TS objcxx_init_ts -#undef LANG_HOOKS_EH_PERSONALITY -#define LANG_HOOKS_EH_PERSONALITY objcxx_eh_personality -#undef LANG_HOOKS_EH_RUNTIME_TYPE -#define LANG_HOOKS_EH_RUNTIME_TYPE build_eh_type_type /* Each front end provides its own lang hook initializer. */ struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; @@ -145,14 +139,4 @@ objcxx_init_ts (void) init_shadowed_var_for_decl (); } -static GTY(()) tree objcp_eh_personality_decl; - -static tree -objcxx_eh_personality (void) -{ - if (!objcp_eh_personality_decl) - objcp_eh_personality_decl = build_personality_function ("gxx"); - return objcp_eh_personality_decl; -} - #include "gtype-objcp.h" |