// forked from gcc/cp/cp-tree.h
-/* Global state pertinent to the current function. */
+/* Global state pertinent to the current function.
+ TODO: remove vestigial fields */
struct GTY (()) language_function
{
target_libs="target-libgrust"
lang_dirs=libgrust
-gtfiles="\$(srcdir)/rust/rust-lang.cc \$(srcdir)/rust/backend/rust-constexpr.cc"
+gtfiles="\
+\$(srcdir)/rust/rust-lang.cc \$(srcdir)/rust/backend/rust-constexpr.cc \
+\$(srcdir)/rust/backend/rust-tree.h \$(srcdir)/rust/backend/rust-tree.cc \
+"
*/
#include "rust-session-manager.h"
-
-// Language-dependent contents of a type. GTY() mark used for garbage collector.
-struct GTY (()) lang_type
-{
-};
-
-// Language-dependent contents of a decl.
-struct GTY (()) lang_decl
-{
-};
-
-// Language-dependent contents of an identifier. This must include a
-// tree_identifier.
-struct GTY (()) lang_identifier
-{
- struct tree_identifier common;
-};
+#include "rust-tree.h"
// The resulting tree type.
union GTY ((
struct lang_identifier GTY ((tag ("1"))) identifier;
};
-// We don't use language_function.
-struct GTY (()) language_function
-{
-};
-
// has to be in same compilation unit as session, so here for now
void
rust_add_target_info (const char *key, const char *value)