Some MachineFunction passes are not properly registered using INITIALIZE_PASS,
but this doesn't normally seem to matter. One way in which it does matter is
that the -print-{after,before}-all flags have no effect when running those
passes. This change modifies the code that implements these flags so that
they print even if the pass is not registered (i.e. the PassInfo is null).
It doesn't seem worth going through the existing MachineFunction passes to add
registration, as the new pass manager seems to not require registration for
most passes, and in any case one would expect the -print-{after,before}-all
flags to do what they say, and not silently skip certain passes.