X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_polymorphy.h;h=6132b805f558699acb2288230fb64535ca77e2ca;hb=5f4790a24705590534c5c7a96d4ce38fe9234540;hp=8ba92c03f9b4bf346dc62d82e345b0c175b391c3;hpb=8eb0a1256d88d68e762c1f087bffadca68dc5c12;p=libfirm diff --git a/ir/opt/opt_polymorphy.h b/ir/opt/opt_polymorphy.h index 8ba92c03f..6132b805f 100644 --- a/ir/opt/opt_polymorphy.h +++ b/ir/opt/opt_polymorphy.h @@ -5,7 +5,7 @@ * Author: * Created: * CVS-ID: $Id$ - * Copyright: (c) 2005 Universität Karlsruhe + * Copyright: (c) 2005 Universität Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ @@ -13,15 +13,22 @@ * * This file subsumes optimization code from cgana. */ - #ifndef _OPT_POLYMORPHY_H_ #define _OPT_POLYMORPHY_H_ -#include "irnode.h" +#include "firm_types.h" + +#ifdef __cplusplus +extern "C" { +#endif /** * Transform Sel(Alloc)[method] - * to SymC[method] + * to SymC[method] under the following conditions: + * + * - opt_dyn_meth_dispatch must be set + * - the method is not overwritten OR + * - the dynamic type is known */ ir_node *transform_node_Sel(ir_node *node); @@ -35,4 +42,8 @@ ir_node *transform_node_Sel(ir_node *node); */ ir_node *transform_node_Load(ir_node *n); +#ifdef __cplusplus +} +#endif + #endif /* _OPT_POLYMORPHY_H_ */