]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/amd64-windows-tdep.c
Turn value_type into method
[thirdparty/binutils-gdb.git] / gdb / amd64-windows-tdep.c
index 411a6204a909d46721d3823cfc242acf9e34e0d3..5c779cbb1185278fc6f3d6823df6bc76f64eb672 100644 (file)
@@ -176,9 +176,9 @@ amd64_windows_adjust_args_passed_by_pointer (struct value **args,
   int i;
 
   for (i = 0; i < nargs; i++)
-    if (amd64_windows_passed_by_pointer (value_type (args[i])))
+    if (amd64_windows_passed_by_pointer (args[i]->type ()))
       {
-       struct type *type = value_type (args[i]);
+       struct type *type = args[i]->type ();
        const gdb_byte *valbuf = value_contents (args[i]).data ();
        const int len = type->length ();
 
@@ -204,7 +204,7 @@ static void
 amd64_windows_store_arg_in_reg (struct regcache *regcache,
                                struct value *arg, int regno)
 {
-  struct type *type = value_type (arg);
+  struct type *type = arg->type ();
   const gdb_byte *valbuf = value_contents (arg).data ();
   gdb_byte buf[8];
 
@@ -251,7 +251,7 @@ amd64_windows_push_arguments (struct regcache *regcache, int nargs,
 
   for (i = 0; i < nargs; i++)
     {
-      struct type *type = value_type (args[i]);
+      struct type *type = args[i]->type ();
       int len = type->length ();
       int on_stack_p = 1;
 
@@ -294,7 +294,7 @@ amd64_windows_push_arguments (struct regcache *regcache, int nargs,
   /* Write out the arguments to the stack.  */
   for (i = 0; i < num_stack_args; i++)
     {
-      struct type *type = value_type (stack_args[i]);
+      struct type *type = stack_args[i]->type ();
       const gdb_byte *valbuf = value_contents (stack_args[i]).data ();
 
       write_memory (sp + element * 8, valbuf, type->length ());