Move resolve_redir_allsegs() to vg_redir.c, the only file that uses it,
and make it private.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3707 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_redir.c b/coregrind/vg_redir.c
index f0840b7..1d6c332 100644
--- a/coregrind/vg_redir.c
+++ b/coregrind/vg_redir.c
@@ -265,6 +265,20 @@
    return resolved;
 }
 
+static Bool resolve_redir_allsegs(CodeRedirect *redir)
+{
+   const SegInfo *si;
+
+   for(si = VG_(next_seginfo)(NULL); 
+       si != NULL; 
+       si = VG_(next_seginfo)(si))
+   {
+      if (VG_(resolve_redir)(redir, si))
+	 return True;
+   }
+   return False;
+}
+
 /* Go through the complete redir list, resolving as much as possible with this SegInfo.
 
     This should be called when a new SegInfo symtab is loaded.
@@ -314,7 +328,7 @@
 
    /* Check against all existing segments to see if this redirection
       can be resolved immediately */
-   if (!VG_(resolve_redir_allsegs)(redir)) {
+   if (!resolve_redir_allsegs(redir)) {
       /* nope, add to list */
       redir->next = unresolved_redir;
       unresolved_redir = redir;
@@ -344,7 +358,7 @@
 
     /* Check against all existing segments to see if this redirection
        can be resolved immediately */
-   if (!VG_(resolve_redir_allsegs)(redir)) {
+   if (!resolve_redir_allsegs(redir)) {
       /* nope, add to list */
       redir->next = unresolved_redir;
       unresolved_redir = redir;
@@ -397,7 +411,7 @@
    
    /* Check against all existing segments to see if this redirection
       can be resolved immediately */
-   if (!VG_(resolve_redir_allsegs)(redir)) {
+   if (!resolve_redir_allsegs(redir)) {
       /* nope, add to list */
       redir->next = unresolved_redir;
       unresolved_redir = redir;