From b3de347f3296995eb2a648d6303ab66bf689e104 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 9 Jan 2020 01:35:59 +0000 Subject: [PATCH] sbitmap.h: add operator const_sbitmap to auto_sbitmap gcc/ChangeLog: * sbitmap.h (auto_sbitmap): Add operator const_sbitmap. From-SVN: r280026 --- gcc/ChangeLog | 4 ++++ gcc/sbitmap.h | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4587da982b4..4c6e926d93f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2020-01-08 David Malcolm + + * sbitmap.h (auto_sbitmap): Add operator const_sbitmap. + 2020-01-08 Jim Wilson * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out diff --git a/gcc/sbitmap.h b/gcc/sbitmap.h index e3f514f0ebf..9c4215db29b 100644 --- a/gcc/sbitmap.h +++ b/gcc/sbitmap.h @@ -295,6 +295,7 @@ public: /* Allow calling sbitmap functions on our bitmap. */ operator sbitmap () { return m_bitmap; } + operator const_sbitmap () const { return m_bitmap; } private: /* Prevent making a copy that refers to our sbitmap. */ -- 2.30.2