When building a module, forward diagnostics to the outer diagnostic consumer.Previously, we would clone the current diagnostic consumer to producea new diagnostic consumer to use when building a m
When building a module, forward diagnostics to the outer diagnostic consumer.Previously, we would clone the current diagnostic consumer to producea new diagnostic consumer to use when building a module. The problemhere is that we end up losing diagnostics for important diagnosticconsumers, such as serialized diagnostics (where we'd end up with twodiagnostic consumers writing the same output file). With forwarding,the diagnostics from all of the different modules being built getforwarded to the one serialized-diagnostic consumer and are emitted ina sane way.Fixes <rdar://problem/13663996>.llvm-svn: 181067
show more ...