aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2020-01-09 01:35:59 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2020-01-09 01:35:59 +0000
commitb3de347f3296995eb2a648d6303ab66bf689e104 (patch)
tree5fa4cd336f84fb797a7167b9d2fff2446ffc3334 /gcc
parentdca7e570a58f88596267d57cd32ce11b4681252b (diff)
downloadgcc-b3de347f3296995eb2a648d6303ab66bf689e104.zip
gcc-b3de347f3296995eb2a648d6303ab66bf689e104.tar.gz
gcc-b3de347f3296995eb2a648d6303ab66bf689e104.tar.bz2
sbitmap.h: add operator const_sbitmap to auto_sbitmap
gcc/ChangeLog: * sbitmap.h (auto_sbitmap): Add operator const_sbitmap. From-SVN: r280026
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/sbitmap.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4587da9..4c6e926 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/sbitmap.h b/gcc/sbitmap.h
index e3f514f..9c4215d 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. */