mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Change type::fields to return an array_view
This patch changes type::fields to return an array_view of the fields, then fixes up the fallout. More cleanups would be possible here (in particular in the field initialization code) but I haven't done so. The main motivation for this patch was to make it simpler to iterate over the fields of a type. Regression tested on x86-64 Fedora 41. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -492,7 +492,7 @@ fake_method::fake_method (type_instance_flags flags,
|
||||
|
||||
fake_method::~fake_method ()
|
||||
{
|
||||
xfree (m_type.fields ());
|
||||
xfree (m_type.fields ().data ());
|
||||
}
|
||||
|
||||
namespace expr
|
||||
|
||||
Reference in New Issue
Block a user