From: David Malcolm Date: Thu, 9 Jan 2020 01:35:59 +0000 (+0000) Subject: sbitmap.h: add operator const_sbitmap to auto_sbitmap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3de347f3296995eb2a648d6303ab66bf689e104;p=gcc.git sbitmap.h: add operator const_sbitmap to auto_sbitmap gcc/ChangeLog: * sbitmap.h (auto_sbitmap): Add operator const_sbitmap. From-SVN: r280026 --- 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. */