Constify.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Dec 2010 13:12:51 +0000 (13:12 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Dec 2010 13:12:51 +0000 (13:12 +0000)
[r28204]

ir/be/arm/arm_cconv.c
ir/be/arm/arm_cconv.h

index 88e6638..a237b36 100644 (file)
@@ -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;
index 6b464cc..9e2b017 100644 (file)
@@ -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);
 
 /**