Remove the valgrind_support parameter from LibVEX_Init. It's unused
and looks like an anachronism. VEX is also cleaner without valgrind things
creeping in.


git-svn-id: svn://svn.valgrind.org/vex/trunk@2955 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/priv/main_globals.c b/priv/main_globals.c
index f30f770..e3d79c6 100644
--- a/priv/main_globals.c
+++ b/priv/main_globals.c
@@ -58,9 +58,6 @@
 /* trace flags */
 Int vex_traceflags = 0;
 
-/* Are we supporting valgrind checking? */
-Bool vex_valgrind_support = False;
-
 /* Max # guest insns per bb */
 VexControl vex_control = { 0,0,False,0,0,0 };
 
diff --git a/priv/main_globals.h b/priv/main_globals.h
index 3578812..3b16976 100644
--- a/priv/main_globals.h
+++ b/priv/main_globals.h
@@ -59,9 +59,6 @@
 /* trace flags */
 extern Int vex_traceflags;
 
-/* Are we supporting valgrind checking? */
-extern Bool vex_valgrind_support;
-
 /* Optimiser/front-end control */
 extern VexControl vex_control;
 
diff --git a/priv/main_main.c b/priv/main_main.c
index 0322a34..d970ef9 100644
--- a/priv/main_main.c
+++ b/priv/main_main.c
@@ -113,8 +113,6 @@
    void (*log_bytes) ( HChar*, Int nbytes ),
    /* debug paranoia level */
    Int debuglevel,
-   /* Are we supporting valgrind checking? */
-   Bool valgrind_support,
    /* Control ... */
    const VexControl* vcon
 )
@@ -195,7 +193,6 @@
 
    /* Really start up .. */
    vex_debuglevel         = debuglevel;
-   vex_valgrind_support   = valgrind_support;
    vex_control            = *vcon;
    vex_initdone           = True;
    vexSetAllocMode ( VexAllocModeTEMP );
diff --git a/pub/libvex.h b/pub/libvex.h
index ec48002..6805f81 100644
--- a/pub/libvex.h
+++ b/pub/libvex.h
@@ -579,9 +579,6 @@
    /* debug paranoia level */
    Int debuglevel,
 
-   /* Are we supporting valgrind checking? */
-   Bool valgrind_support,
-
    /* Control ... */
    const VexControl* vcon
 );
diff --git a/switchback/switchback.c b/switchback/switchback.c
index 02c0b77..1fa932c 100644
--- a/switchback/switchback.c
+++ b/switchback/switchback.c
@@ -768,7 +768,7 @@
    vcon.guest_chase_thresh=0;
    vcon.iropt_level=2;
 
-   LibVEX_Init( failure_exit, log_bytes, 1, False, &vcon );
+   LibVEX_Init( failure_exit, log_bytes, 1, &vcon );
    LibVEX_Guest_initialise(&gst);
    gst.host_EvC_COUNTER  = 999999999; // so we should never get an exit
    gst.host_EvC_FAILADDR = 0x5a5a5a5a5a5a5a5a;
diff --git a/test_main.c b/test_main.c
index 987ac6f..802827c 100644
--- a/test_main.c
+++ b/test_main.c
@@ -127,7 +127,6 @@
 
    LibVEX_Init ( &failure_exit, &log_bytes, 
                  1,  /* debug_paranoia */ 
-                 TEST_VSUPPORT, /* valgrind support */
                  &vcon );
 
 
diff --git a/test_main.h b/test_main.h
index 0c537a0..720900f 100644
--- a/test_main.h
+++ b/test_main.h
@@ -3,7 +3,6 @@
 
 /* DEBUG RUN, ON V */
 #if 1
-#define TEST_VSUPPORT  True
 #define TEST_N_ITERS   1
 #define TEST_N_BBS     1
 #define TEST_FLAGS     (1<<7)|(0<<6)|(1<<3)|(0<<2)|(0<<1)|(0<<0)
@@ -11,7 +10,6 @@
 
 /* CHECKING RUN, ON V */
 #if 0
-#define TEST_VSUPPORT  True
 #define TEST_N_ITERS   1
 #define TEST_N_BBS     100000
 #define TEST_FLAGS     0
@@ -19,7 +17,6 @@
 
 /* PROFILING RUN, NATIVE */
 #if 0
-#define TEST_VSUPPORT  False
 #define TEST_N_ITERS   100
 #define TEST_N_BBS     1000
 #define TEST_FLAGS     0
@@ -27,7 +24,6 @@
 
 /* PROFILING RUN, REDUCED WORKLOAD */
 #if 0
-#define TEST_VSUPPORT  False
 #define TEST_N_ITERS   3
 #define TEST_N_BBS     1000
 #define TEST_FLAGS     0