diff options
-rw-r--r-- | gcc/c/c-tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h index 9455fcf386d..86a22fad14c 100644 --- a/gcc/c/c-tree.h +++ b/gcc/c/c-tree.h @@ -148,6 +148,11 @@ struct c_expr of this expression. */ location_t get_start () const { return src_range.m_start; } location_t get_finish () const { return src_range.m_finish; } + location_t get_location () const + { + return make_location (src_range.m_start, src_range.m_start, + src_range.m_finish); + } /* Set the value to error_mark_node whilst ensuring that src_range is initialized. */ |