Remove addrmap_create_mutable

This removes addrmap_create_mutable in favor of using 'new' at the
spots where the addrmap is created.
This commit is contained in:
Tom Tromey
2022-04-16 09:48:12 -06:00
parent 769520b7e5
commit 10cce2c441
5 changed files with 14 additions and 20 deletions

View File

@@ -419,7 +419,9 @@ buildsym_compunit::record_block_range (struct block *block,
m_pending_addrmap_interesting = true;
if (m_pending_addrmap == nullptr)
m_pending_addrmap = addrmap_create_mutable (&m_pending_addrmap_obstack);
m_pending_addrmap
= (new (&m_pending_addrmap_obstack) addrmap_mutable
(&m_pending_addrmap_obstack));
m_pending_addrmap->set_empty (start, end_inclusive, block);
}