mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Turn various value copying-related functions into methods
This patch turns a grab bag of value functions to methods of value. These are done together because their implementations are interrelated. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -2570,7 +2570,7 @@ unop_extract_operation::evaluate (struct type *expect_type,
|
||||
error (_("length type is larger than the value type"));
|
||||
|
||||
struct value *result = value::allocate (type);
|
||||
value_contents_copy (result, 0, old_value, 0, type->length ());
|
||||
old_value->contents_copy (result, 0, 0, type->length ());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user