[LPM] Teach the legacy pass manager to support *using* an analysis