From: Michael Beck Date: Tue, 11 Oct 2005 15:03:47 +0000 (+0000) Subject: made is_address_taken() public X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b73f55938b96a97a0c9322f22e18258e50546c93;p=libfirm made is_address_taken() public [r6677] --- diff --git a/ir/opt/scalar_replace.c b/ir/opt/scalar_replace.c index e82094527..6f322834b 100644 --- a/ir/opt/scalar_replace.c +++ b/ir/opt/scalar_replace.c @@ -126,13 +126,11 @@ static int is_const_sel(ir_node *sel) { return 1; } -/** +/* * Returns non-zero, if the address of an entity * represented by a Sel node (or it's successor Sels) is taken. - * - * @param sel the Sel node */ -static int is_address_taken(ir_node *sel) +int is_address_taken(ir_node *sel) { int i, n; diff --git a/ir/opt/scalar_replace.h b/ir/opt/scalar_replace.h index 3938a02d6..4ed3f1f23 100644 --- a/ir/opt/scalar_replace.h +++ b/ir/opt/scalar_replace.h @@ -14,6 +14,14 @@ #include "irgraph.h" +/** + * Returns non-zero, if the address of an entity + * represented by a Sel node (or it's successor Sels) is taken. + * + * @param sel the Sel node + */ +int is_address_taken(ir_node *sel); + /** * Do the scalar replacement optimization. * Replace local compound entities (like structures and arrays)