diff options
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index f158b44..99a9544 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -806,10 +806,10 @@ bmp_iter_and_compl (bitmap_iterator *bi, unsigned *bit_no) class auto_bitmap { public: - auto_bitmap () { bits = BITMAP_ALLOC (NULL); } - ~auto_bitmap () { BITMAP_FREE (bits); } + auto_bitmap () { bitmap_initialize (&m_bits, &bitmap_default_obstack); } + ~auto_bitmap () { bitmap_clear (&m_bits); } // Allow calling bitmap functions on our bitmap. - operator bitmap () { return bits; } + operator bitmap () { return &m_bits; } private: // Prevent making a copy that references our bitmap. @@ -820,7 +820,7 @@ class auto_bitmap auto_bitmap &operator = (auto_bitmap &&); #endif - bitmap bits; + bitmap_head m_bits; }; #endif /* GCC_BITMAP_H */ |