Teach the serialized diagnostic writer to clone() itself, sharing
authorDouglas Gregor <dgregor@apple.com>
Fri, 30 Nov 2012 23:32:31 +0000 (23:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 30 Nov 2012 23:32:31 +0000 (23:32 +0000)
commitfa686fb4ed3bb9c7a310f65ebeff8637ec5b90b6
treee76fa4123c4d31119eeff4fb973f598b29f8d700
parentc7e43fffc5ae0d3559e412061ba8102fe43dfd21
Teach the serialized diagnostic writer to clone() itself, sharing
state so that all of the various clones end up rendering their
diagnostics into the same serialized-diagnostics file. This is
important when we actually want failures during module build to be
reported back to the translation unit that tried to import the
not-yet-built or out-of-date module. <rdar://problem/12565727>

llvm-svn: 169057
clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
clang/test/Modules/build-fail-notes.m