aboutsummaryrefslogtreecommitdiff
path: root/gcc/sese.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/sese.h')
-rw-r--r--gcc/sese.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/sese.h b/gcc/sese.h
index 8931b28..0319da6 100644
--- a/gcc/sese.h
+++ b/gcc/sese.h
@@ -26,8 +26,9 @@ typedef struct ifsese_s *ifsese;
/* A Single Entry, Single Exit region is a part of the CFG delimited
by two edges. */
-struct sese_l
+class sese_l
{
+public:
sese_l (edge e, edge x) : entry (e), exit (x) {}
operator bool () const { return entry && exit; }
@@ -71,8 +72,9 @@ vec_find (const vec<T> &v, const T &elem)
}
/* A helper structure for bookkeeping information about a scop in graphite. */
-typedef struct sese_info_t
+typedef class sese_info_t
{
+public:
/* The SESE region. */
sese_l region;