From 8a98ba2a6cbeddca58e3bba61bbe67946f4c438e Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 20 Jul 2017 12:40:33 -0400 Subject: [PATCH 27/27] FIXME: C: add c_expr::get_location --- gcc/c/c-tree.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h index 9455fcf..86a22fa 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. */ -- 1.8.5.3