summaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index 6f7c7ff6a5f..6cc7e66059d 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -1879,6 +1879,14 @@ gimple_set_location (gimple *g, location_t location)
g->location = location;
}
+/* Return address of the location information for statement G. */
+
+static inline location_t *
+gimple_location_ptr (gimple *g)
+{
+ return &g->location;
+}
+
/* Return true if G contains location information. */
@@ -4581,6 +4589,14 @@ gimple_phi_arg_set_location (gphi *phi, size_t i, location_t loc)
gimple_phi_arg (phi, i)->locus = loc;
}
+/* Return address of source location of gimple argument I of phi node PHI. */
+
+static inline location_t *
+gimple_phi_arg_location_ptr (gphi *phi, size_t i)
+{
+ return &gimple_phi_arg (phi, i)->locus;
+}
+
/* Return TRUE if argument I of phi node PHI has a location record. */
static inline bool