X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_confirms.h;h=2afbe7c894b8912994276f4d8f54020e525d6651;hb=5bfb295525b0e0811b61106bb47375e2aaf77c54;hp=31872b8664ed79a9eadf3b6ba11bec78220c1775;hpb=70b487f0df27d9b35985a709da8a46484106a52f;p=libfirm diff --git a/ir/opt/opt_confirms.h b/ir/opt/opt_confirms.h index 31872b866..2afbe7c89 100644 --- a/ir/opt/opt_confirms.h +++ b/ir/opt/opt_confirms.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -32,18 +32,20 @@ #include "firm_types.h" +/** Needed for MSVC to suporess warnings because it doest NOT handle const right. */ +typedef const ir_node *ir_node_cnst_ptr; + /** * Check, if the value of a node is != 0. * * This is a often needed case, so we handle here Confirm * nodes too. * - * @param blk the block for which the check is done * @param n a node representing the value * @param confirm if n is confirmed to be != 0, returns * the the Confirm-node, else NULL */ -int value_not_zero(ir_node *blk, ir_node *n, ir_node **confirm); +int value_not_zero(const ir_node *n, ir_node_cnst_ptr *confirm); /** * Check, if the value of a node cannot represent a NULL pointer. @@ -54,12 +56,11 @@ int value_not_zero(ir_node *blk, ir_node *n, ir_node **confirm); * - A Const != NULL is NEVER a NULL pointer * - Confirms are evaluated * - * @param blk the block for which the check is done * @param n a node representing the value * @param confirm if n is confirmed to be != NULL, returns * the the Confirm-node, else NULL */ -int value_not_null(ir_node *blk, ir_node *n, ir_node **confirm); +int value_not_null(const ir_node *n, ir_node_cnst_ptr *confirm); /** * Possible return values of value_classify().