]> granicus.if.org Git - clang/commit
Driver: Make FailingCommand mandatory for generateCompilationDiagnostics
authorJustin Bogner <mail@justinbogner.com>
Mon, 20 Oct 2014 21:02:05 +0000 (21:02 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 20 Oct 2014 21:02:05 +0000 (21:02 +0000)
commit8d24a336dea9ffac70f50acf16958db1a9212390
treeedf5906b031678eba3e25385f6e40ded1522b591
parented84178b858b2ada58f59f3c81df4b5605e1d769
Driver: Make FailingCommand mandatory for generateCompilationDiagnostics

We currently use a null FailingCommand when generating crash reports
as an indication that the cause is FORCE_CLANG_DIAGNOSTICS_CRASH, the
environment variable that exists to test crash dumps. This means that
our tests don't actually cover real crashes at all, and adds a more
complicated code path that's only used in the tests.

Instead, we can have the driver synthesize that every command failed
and just call generateCompilationDiagnostics normally.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220234 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Driver.h
lib/Driver/Driver.cpp
tools/driver/driver.cpp