// Set up the optimizer pipeline.
IMethodBodyVisitor delegate = super.visitBody(mbi);
if ( removeDeadCode )
{
IDiagnosticsVisitor diagnostics = new AbstractDiagnosticVisitor()
{
@Override
public void unreachableBlock(MethodBodyInfo methodBodyInfo, IFlowgraph cfg, IBasicBlock block)
{
if ( problems != null )