From 1a5669981f6f00f7ee693aed5a0039037356e4ed Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 28 Dec 2010 13:12:51 +0000 Subject: [PATCH] Constify. [r28204] --- ir/be/arm/arm_cconv.c | 3 ++- ir/be/arm/arm_cconv.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/be/arm/arm_cconv.c b/ir/be/arm/arm_cconv.c index 88e663855..a237b36ae 100644 --- a/ir/be/arm/arm_cconv.c +++ b/ir/be/arm/arm_cconv.c @@ -39,7 +39,8 @@ static const unsigned ignore_regs[] = { REG_FL, }; -calling_convention_t *arm_decide_calling_convention(ir_graph *irg, +/* determine how function parameters and return values are passed. */ +calling_convention_t *arm_decide_calling_convention(const ir_graph *irg, ir_type *function_type) { int stack_offset = 0; diff --git a/ir/be/arm/arm_cconv.h b/ir/be/arm/arm_cconv.h index 6b464cce7..9e2b0171e 100644 --- a/ir/be/arm/arm_cconv.h +++ b/ir/be/arm/arm_cconv.h @@ -102,7 +102,7 @@ typedef struct calling_convention_t * Decides what goes to register or to stack and what stack offsets/ * datatypes are used. */ -calling_convention_t *arm_decide_calling_convention(ir_graph *irg, +calling_convention_t *arm_decide_calling_convention(const ir_graph *irg, ir_type *function_type); /** -- 2.20.1