(stats only) Let the callers of LibVEX_Translate know how many guest
instructions got incorporated into the IRSB.


git-svn-id: svn://svn.valgrind.org/vex/trunk@2313 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/priv/main_main.c b/priv/main_main.c
index a8c3968..c73c5d2 100644
--- a/priv/main_main.c
+++ b/priv/main_main.c
@@ -528,9 +528,10 @@
 
    /* Set up result struct. */
    VexTranslateResult res;
-   res.status       = VexTransOK;
-   res.n_sc_extents = 0;
-   res.offs_profInc = -1;
+   res.status         = VexTransOK;
+   res.n_sc_extents   = 0;
+   res.offs_profInc   = -1;
+   res.n_guest_instrs = 0;
 
    /* yet more sanity checks ... */
    if (vta->arch_guest == vta->arch_host) {
@@ -549,6 +550,7 @@
 
    irsb = bb_to_IR ( vta->guest_extents,
                      &res.n_sc_extents,
+                     &res.n_guest_instrs,
                      vta->callback_opaque,
                      disInstrFn,
                      vta->guest_bytes,