Vex-side changes to allow tools to provide a final_tidy function which
they can use to mess with the final post-tree-built IR before it is
handed off to instruction selection.
git-svn-id: svn://svn.valgrind.org/vex/trunk@1782
also throws away any dead bindings. */
ado_treebuild_BB( irsb );
+ if (vta->finaltidy) {
+ irsb = vta->finaltidy(irsb);
+ }
+
vexAllocSanityCheck();
if (vex_traceflags & VEX_TRACE_TREES) {
VexGuestExtents*,
IRType gWordTy, IRType hWordTy );
+ IRSB* (*finaltidy) ( IRSB* );
+
/* IN: should this translation be self-checking? default: False */
Bool do_self_check;