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:
parent
dca7e570a5
commit
b3de347f32
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user