summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-01 08:47:16 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-01 08:47:16 +0000
commit52d6bee4af7c047290440bcef095b2b11b5280f4 (patch)
treebc3cf975abb40ef9d243230199d2065263a4789e /gcc/target.h
parentda5bcf43ce3d4265b85c9acaa27f6f1bdd7ef86d (diff)
downloadgcc-52d6bee4af7c047290440bcef095b2b11b5280f4.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83964 138bc75d-0d04-0410-961f-82ee72b054a4
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 300ef57063d..fd58fecba90 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. */