summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Serialization/GeneratePCH.cpp
diff options
context:
space:
mode:
authorflo <flo@FreeBSD.org>2013-06-11 17:46:32 +0000
committerflo <flo@FreeBSD.org>2013-06-11 17:46:32 +0000
commite6f73328423acdce70b5f1692dd903c3076b6224 (patch)
tree4e3c2143ab53ad5e1e70d632d8a56f6958773b29 /contrib/llvm/tools/clang/lib/Serialization/GeneratePCH.cpp
parentda4379cf0bbd1678479f7f434024b4fb928b3204 (diff)
downloadFreeBSD-src-e6f73328423acdce70b5f1692dd903c3076b6224.zip
FreeBSD-src-e6f73328423acdce70b5f1692dd903c3076b6224.tar.gz
Move the check whether the clear flag is set. This has 2 advantages
- When operating on a core file (-M) and -c is specified we don't clear the message buffer of the running system. - If we don't have permission to clear the buffer print the error message only. That's what Linux does in this case, where this feature was ported from, and it ensures that the error message doesn't get lost in the noise. Discussed with: antoine, cognet Approved by: cognet
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Serialization/GeneratePCH.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud