aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-07-01 08:47:16 +0000
committerNick Clifton <nickc@gcc.gnu.org>2004-07-01 08:47:16 +0000
commitd59c7b4bdca296330783083e285ec0fab406df28 (patch)
treebc3cf975abb40ef9d243230199d2065263a4789e /gcc/target.h
parented63f99a3c6a15acd707795ec041f2ef0e9e74f3 (diff)
downloadgcc-d59c7b4bdca296330783083e285ec0fab406df28.zip
gcc-d59c7b4bdca296330783083e285ec0fab406df28.tar.gz
gcc-d59c7b4bdca296330783083e285ec0fab406df28.tar.bz2
target.h (struct gcc_target): Add new field to struct cxx: import_export_class.
* target.h (struct gcc_target): Add new field to struct cxx: import_export_class. * target-def.h (TARGET_CXX): Initialise the new field. (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for the new field. * doc/tm.texi: Document the new target hook. * decl2.c (import_export_class): Invoke the import_export_class field in the gcc_target structure if it is not empty. From-SVN: r83964
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 300ef57..fd58fec 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -487,6 +487,9 @@ struct gcc_target
/* Returns true if the element size should be stored in the
array cookie. */
bool (*cookie_has_size) (void);
+ /* Allows backends to perform additional processing when
+ deciding if a class should be exported or imported. */
+ int (*import_export_class) (tree, int);
} cxx;
/* Leave the boolean fields at the end. */