diff options
Diffstat (limited to 'gcc/objc/objc-tree-code.h')
-rw-r--r-- | gcc/objc/objc-tree-code.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/gcc/objc/objc-tree-code.h b/gcc/objc/objc-tree-code.h new file mode 100644 index 00000000000..d989b33462c --- /dev/null +++ b/gcc/objc/objc-tree-code.h @@ -0,0 +1,54 @@ +/* Definitions for ObjcC codes of tree nodes. + Copyright (C) 2006 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. */ + +/* Define the Objective-C or Objective-C++ language-specific tree codes. */ + +#define DEFTREECODE(SYM, STRING, TYPE, NARGS) SYM, + +enum tree_code { +#ifdef OBJCPLUS +#include "tree.def" + + LAST_AND_UNUSED_TREE_CODE, /* A convenient way to get a value for + NUM_TREE_CODES. */ + C_DUMMY_TREE_CODE = LAST_AND_UNUSED_TREE_CODE, +#include "c-common.def" + LAST_C_TREE_CODE, + CP_DUMMY_TREE_CODE = LAST_C_TREE_CODE, +#include "cp-tree.def" + LAST_CPLUS_TREE_CODE, + LAST_BASE_TREE_CODE = LAST_CPLUS_TREE_CODE, +#else +#include "tree.def" + + LAST_AND_UNUSED_TREE_CODE, /* A convenient way to get a value for + NUM_TREE_CODES. */ + C_DUMMY_TREE_CODE = LAST_AND_UNUSED_TREE_CODE, +#include "c-common.def" + LAST_C_TREE_CODE, + LAST_BASE_TREE_CODE = LAST_C_TREE_CODE, +#endif +#include "objc-tree.def" + LAST_OBJC_TREE_CODE +}; + +#undef DEFTREECODE + +#define TREE_CODE_DEFINED 1 |