From b73f55938b96a97a0c9322f22e18258e50546c93 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 11 Oct 2005 15:03:47 +0000 Subject: [PATCH] made is_address_taken() public [r6677] --- ir/opt/scalar_replace.c | 6 ++---- ir/opt/scalar_replace.h | 8 ++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) 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) -- 2.20.1