Various plumbing to allow the optimiser (really, just a subset) to be
run post-instrumentation.
git-svn-id: svn://svn.valgrind.org/vex/trunk@492 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/test_main.c b/test_main.c
index 7ca579d..5c2d300 100644
--- a/test_main.c
+++ b/test_main.c
@@ -48,7 +48,7 @@
static Bool verbose = True;
/* Forwards */
-static IRBB* ac_instrument ( IRBB*, VexGuestLayout* );
+static IRBB* ac_instrument ( IRBB*, VexGuestLayout*, IRType );
int main ( int argc, char** argv )
@@ -123,6 +123,7 @@
transbuf, N_TRANSBUF, &trans_used,
ac_instrument, //NULL, /* instrument1 */
NULL, /* instrument2 */
+ False, /* cleanup after instrument */
NULL, /* access checker */
TEST_FLAGS
);
@@ -155,7 +156,7 @@
}
static
-IRBB* ac_instrument (IRBB* bb_in, VexGuestLayout* layout)
+IRBB* ac_instrument (IRBB* bb_in, VexGuestLayout* layout, IRType hWordTy )
{
/* Use this rather than eg. -1 because it's a UInt. */
#define INVALID_DATA_SIZE 999999