remove our own management of passes and trick the passmanagerbuilder into
only putting function passes in by filtering out the non-function passes.