Turn some value_contents functions into methods
[binutils-gdb.git] / gdb / valprint.c
index 578a2294dfedb7c83fe026aee2e580c143a86a65..1ad964a70c584920f0ba16d83f25c27458955e79 100644 (file)
@@ -3100,7 +3100,7 @@ test_print_flags (gdbarch *arch)
   append_flags_type_field (flags_type, 5, 3, field_type, "C");
 
   value *val = value::allocate (flags_type);
-  gdb_byte *contents = value_contents_writeable (val).data ();
+  gdb_byte *contents = val->contents_writeable ().data ();
   store_unsigned_integer (contents, 4, gdbarch_byte_order (arch), 0xaa);
 
   string_file out;