Make getPassManagerType() const.