diff mbox

[3/4] remove unused gasm accessors

Message ID 1444004727-3423-4-git-send-email-tbsaunde+gcc@tbsaunde.org
State New
Headers show

Commit Message

tbsaunde+gcc@tbsaunde.org Oct. 5, 2015, 12:25 a.m. UTC
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

gcc/ChangeLog:

2015-10-04  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* gimple.h (gimple_asm_input_op_ptr): Remove.
	(gimple_asm_output_op_ptr): Likewise.
---
 gcc/gimple.h | 20 --------------------
 1 file changed, 20 deletions(-)

Comments

Richard Biener Oct. 5, 2015, 9:10 a.m. UTC | #1
On Mon, Oct 5, 2015 at 2:25 AM,  <tbsaunde+gcc@tbsaunde.org> wrote:
> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> gcc/ChangeLog:
>
> 2015-10-04  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
>
>         * gimple.h (gimple_asm_input_op_ptr): Remove.
>         (gimple_asm_output_op_ptr): Likewise.

Ok.

Thanks,
Richard.

> ---
>  gcc/gimple.h | 20 --------------------
>  1 file changed, 20 deletions(-)
>
> diff --git a/gcc/gimple.h b/gcc/gimple.h
> index cfd8d2c..9e7a911 100644
> --- a/gcc/gimple.h
> +++ b/gcc/gimple.h
> @@ -3717,16 +3717,6 @@ gimple_asm_input_op (const gasm *asm_stmt, unsigned index)
>    return asm_stmt->op[index + asm_stmt->no];
>  }
>
> -/* Return a pointer to input operand INDEX of GIMPLE_ASM ASM_STMT.  */
> -
> -static inline tree *
> -gimple_asm_input_op_ptr (const gasm *asm_stmt, unsigned index)
> -{
> -  gcc_gimple_checking_assert (index < asm_stmt->ni);
> -  return const_cast<tree *> (&asm_stmt->op[index + asm_stmt->no]);
> -}
> -
> -
>  /* Set IN_OP to be input operand INDEX in GIMPLE_ASM ASM_STMT.  */
>
>  static inline void
> @@ -3747,16 +3737,6 @@ gimple_asm_output_op (const gasm *asm_stmt, unsigned index)
>    return asm_stmt->op[index];
>  }
>
> -/* Return a pointer to output operand INDEX of GIMPLE_ASM ASM_STMT.  */
> -
> -static inline tree *
> -gimple_asm_output_op_ptr (const gasm *asm_stmt, unsigned index)
> -{
> -  gcc_gimple_checking_assert (index < asm_stmt->no);
> -  return const_cast<tree *> (&asm_stmt->op[index]);
> -}
> -
> -
>  /* Set OUT_OP to be output operand INDEX in GIMPLE_ASM ASM_STMT.  */
>
>  static inline void
> --
> 2.4.0
>
diff mbox

Patch

diff --git a/gcc/gimple.h b/gcc/gimple.h
index cfd8d2c..9e7a911 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -3717,16 +3717,6 @@  gimple_asm_input_op (const gasm *asm_stmt, unsigned index)
   return asm_stmt->op[index + asm_stmt->no];
 }
 
-/* Return a pointer to input operand INDEX of GIMPLE_ASM ASM_STMT.  */
-
-static inline tree *
-gimple_asm_input_op_ptr (const gasm *asm_stmt, unsigned index)
-{
-  gcc_gimple_checking_assert (index < asm_stmt->ni);
-  return const_cast<tree *> (&asm_stmt->op[index + asm_stmt->no]);
-}
-
-
 /* Set IN_OP to be input operand INDEX in GIMPLE_ASM ASM_STMT.  */
 
 static inline void
@@ -3747,16 +3737,6 @@  gimple_asm_output_op (const gasm *asm_stmt, unsigned index)
   return asm_stmt->op[index];
 }
 
-/* Return a pointer to output operand INDEX of GIMPLE_ASM ASM_STMT.  */
-
-static inline tree *
-gimple_asm_output_op_ptr (const gasm *asm_stmt, unsigned index)
-{
-  gcc_gimple_checking_assert (index < asm_stmt->no);
-  return const_cast<tree *> (&asm_stmt->op[index]);
-}
-
-
 /* Set OUT_OP to be output operand INDEX in GIMPLE_ASM ASM_STMT.  */
 
 static inline void