Fixed a const warning
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Thu, 9 Aug 2007 20:16:54 +0000 (20:16 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Thu, 9 Aug 2007 20:16:54 +0000 (20:16 +0000)
[r15516]

ir/be/bespill.c
ir/be/bespill.h

index 1a52c02..85c051d 100644 (file)
@@ -304,7 +304,7 @@ ir_node *get_block_insertion_point(ir_node *block, int pos)
        return be_get_end_of_block_insertion_point(predblock);
 }
 
        return be_get_end_of_block_insertion_point(predblock);
 }
 
-void be_add_reload_at_end(spill_env_t *env, ir_node *to_spill, ir_node *block,
+void be_add_reload_at_end(spill_env_t *env, ir_node *to_spill, const ir_node *block,
                           const arch_register_class_t *reload_cls,
                           int allow_remat)
 {
                           const arch_register_class_t *reload_cls,
                           int allow_remat)
 {
index 18f56d0..11794db 100644 (file)
@@ -69,7 +69,7 @@ void be_add_reload(spill_env_t *senv, ir_node *to_spill, ir_node *before,
  * Add a reload at the end of a block.
  * Similar to be_add_reload_on_edge().
  */
  * Add a reload at the end of a block.
  * Similar to be_add_reload_on_edge().
  */
-void be_add_reload_at_end(spill_env_t *env, ir_node *to_spill, ir_node *block,
+void be_add_reload_at_end(spill_env_t *env, ir_node *to_spill, const ir_node *block,
                           const arch_register_class_t *reload_cls,
                           int allow_remat);
 
                           const arch_register_class_t *reload_cls,
                           int allow_remat);