aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 7bfd641..845228a 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5280,6 +5280,18 @@ build_decl (location_t loc, enum tree_code code, tree name,
return t;
}
+/* Create and return a DEBUG_EXPR_DECL node of the given TYPE. */
+
+tree
+build_debug_expr_decl (tree type)
+{
+ tree vexpr = make_node (DEBUG_EXPR_DECL);
+ DECL_ARTIFICIAL (vexpr) = 1;
+ TREE_TYPE (vexpr) = type;
+ SET_DECL_MODE (vexpr, TYPE_MODE (type));
+ return vexpr;
+}
+
/* Builds and returns function declaration with NAME and TYPE. */
tree