Skip to content
Snippets Groups Projects
  • Iain Buclaw's avatar
    ad4c44d2
    d: Use create_tmp_var_raw and get_callee_fndecl · ad4c44d2
    Iain Buclaw authored
    A couple of small patterns that repeat are generating a temporary, and
    getting a function out of a CALL_EXPR.  There are convenience functions
    for these in the common parts of gcc, use them instead.
    
    gcc/d/ChangeLog:
    
    	* d-codegen.cc: Include gimple-expr.h.
    	(force_target_expr): Use create_tmp_var_raw.
    	* decl.cc: Inlucde gimple-expr.h.
    	(build_local_temp): Use create_tmp_var_raw.
    	* intrinsics.cc (expand_intrinsic_rotate): Use get_callee_fndecl.
    	(maybe_expand_intrinsic): Likewise.
    ad4c44d2
    History
    d: Use create_tmp_var_raw and get_callee_fndecl
    Iain Buclaw authored
    A couple of small patterns that repeat are generating a temporary, and
    getting a function out of a CALL_EXPR.  There are convenience functions
    for these in the common parts of gcc, use them instead.
    
    gcc/d/ChangeLog:
    
    	* d-codegen.cc: Include gimple-expr.h.
    	(force_target_expr): Use create_tmp_var_raw.
    	* decl.cc: Inlucde gimple-expr.h.
    	(build_local_temp): Use create_tmp_var_raw.
    	* intrinsics.cc (expand_intrinsic_rotate): Use get_callee_fndecl.
    	(maybe_expand_intrinsic): Likewise.