get_irg_frame_type() now calls skip_tid()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 19 Jul 2005 15:21:41 +0000 (15:21 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 19 Jul 2005 15:21:41 +0000 (15:21 +0000)
[r6248]

ir/ir/irgraph.c
ir/ir/irgraph.h
ir/ir/irgraph_t.h

index 24ac3a7..3ca0932 100644 (file)
@@ -532,7 +532,7 @@ void
 }
 
 type *
-(get_irg_frame_type)(const ir_graph *irg) {
+(get_irg_frame_type)(ir_graph *irg) {
   return _get_irg_frame_type(irg);
 }
 
index 932ccd8..4ea428a 100644 (file)
@@ -198,7 +198,7 @@ int      is_ir_graph(const void *thing);
 entity  *get_irg_entity (const ir_graph *irg);
 void     set_irg_entity (ir_graph *irg, entity *ent);
 
-type    *get_irg_frame_type (const ir_graph *irg);
+type    *get_irg_frame_type (ir_graph *irg);
 void     set_irg_frame_type (ir_graph *irg, type *ftp);
 /* To test for a frame type. O(#irgs) if ftp is class type.  */
 int      is_frame_type (const type *ftp);
index 3d29819..5381231 100644 (file)
@@ -29,6 +29,7 @@
 #include "irprog.h"
 #include "pseudo_irg.h"
 #include "type_t.h"
+#include "typegmod.h"
 #include "tr_inheritance.h"
 
 #include "irloop.h"
@@ -340,9 +341,9 @@ _set_irg_entity(ir_graph *irg, entity *ent) {
 }
 
 static INLINE type *
-_get_irg_frame_type(const ir_graph *irg) {
+_get_irg_frame_type(ir_graph *irg) {
   assert(irg && irg->frame_type);
-  return irg->frame_type;
+  return irg->frame_type = skip_tid(irg->frame_type);
 }
 
 static INLINE void