Previously, we would clone the current diagnostic consumer to produce a new diagnostic consumer to use when building a module. The problem here is that we end up losing diagnostics for important diagnostic consumers, such as serialized diagnostics (where we'd end up with two diagnostic consumers writing the same output file). With forwarding, the diagnostics from all of the different modules being built get forwarded to the one serialized-diagnostic consumer and are emitted in a sane way. Fixes <rdar://problem/13663996>. llvm-svn: 181067
8 lines
95 B
Plaintext
8 lines
95 B
Plaintext
module HasWarnings {
|
|
header "has_warnings.h"
|
|
}
|
|
|
|
module HasErrors {
|
|
header "has_errors.h"
|
|
}
|