sbitmap.h: add operator const_sbitmap to auto_sbitmap

gcc/ChangeLog:
	* sbitmap.h (auto_sbitmap): Add operator const_sbitmap.

From-SVN: r280026
This commit is contained in:
David Malcolm 2020-01-09 01:35:59 +00:00 committed by David Malcolm
parent dca7e570a5
commit b3de347f32
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2020-01-08 David Malcolm <dmalcolm@redhat.com>
* sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
2020-01-08 Jim Wilson <jimw@sifive.com>
* config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out

View File

@ -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. */