summaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorbaldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-28 08:50:39 +0000
committerbaldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-28 08:50:39 +0000
commit86b6369622fb5ab4b0fc6e5bd2ff40cb25ad4166 (patch)
tree194a436e90764acef2d9ddd4041e1b96fecade5a /gcc/ggc.h
parent634c15dc444b793c959353a4cb61294ca30fda9c (diff)
downloadgcc-86b6369622fb5ab4b0fc6e5bd2ff40cb25ad4166.tar.gz
Add support for using ggc cache tables from plugins.
Approved by Ian Lance Taylor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152232 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r--gcc/ggc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h
index e3471e45353..c373de32cb7 100644
--- a/gcc/ggc.h
+++ b/gcc/ggc.h
@@ -272,9 +272,13 @@ extern const char *ggc_alloc_string (const char *contents, int length);
extern void ggc_collect (void);
/* Register an additional root table. This can be useful for some
- plugins. Does nothing if the passed pointer is null. */
+ plugins. Does nothing if the passed pointer is NULL. */
extern void ggc_register_root_tab (const struct ggc_root_tab *);
+/* Register an additional cache table. This can be useful for some
+ plugins. Does nothing if the passed pointer is NULL. */
+extern void ggc_register_cache_tab (const struct ggc_cache_tab *);
+
/* Return the number of bytes allocated at the indicated address. */
extern size_t ggc_get_size (const void *);