From 317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 31 Jan 2023 13:25:17 -0700 Subject: Turn allocate_value into a static "constructor" This changes allocate_value to be a static "constructor" of value. Approved-By: Simon Marchi --- gdb/i386-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/i386-tdep.c') diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index aea5e12..3462125 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -3093,7 +3093,7 @@ i386_return_value (struct gdbarch *gdbarch, struct value *function, if (read_value != nullptr) { - *read_value = allocate_value (type); + *read_value = value::allocate (type); i386_extract_return_value (gdbarch, type, regcache, value_contents_raw (*read_value).data ()); } @@ -3557,7 +3557,7 @@ i386_pseudo_register_read_value (struct gdbarch *gdbarch, { struct value *result; - result = allocate_value (register_type (gdbarch, regnum)); + result = value::allocate (register_type (gdbarch, regnum)); VALUE_LVAL (result) = lval_register; VALUE_REGNUM (result) = regnum; -- cgit v1.1