Commit b3de347f by David Malcolm Committed by David Malcolm

sbitmap.h: add operator const_sbitmap to auto_sbitmap

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

From-SVN: r280026
parent dca7e570
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
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment