Re-land "[Clang][Driver] Remove -M group options ..." and "[Clang] Avoid crashing...
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 7 Feb 2020 14:35:51 +0000 (09:35 -0500)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 7 Feb 2020 14:51:09 +0000 (09:51 -0500)
commit75f09b54429bee17a96e2ba7a2ac0f0a8a7f7e74
treec9c075b6eb8bd504ecb650c05d5e7a4e4bfc19f7
parentea9166b5a838d788a4ec0c9ddf0c83b09f49cfe4
Re-land "[Clang][Driver] Remove -M group options ..." and "[Clang] Avoid crashing when generating crash diagnostics when '#pragma clang __debug ..."

This re-lands commits f41ec709d9d388dc43469e6ac7f51b6313f7e4af (https://reviews.llvm.org/D74076)
and commit 5fedc2b410853a6aef05e8edf19ebfc4e071e28f (https://reviews.llvm.org/D74070)

The previous build break was caused by '#pragma clang __debug llvm_unreachable' used in a non-assert build. Move it to a separate test in crash-report-with-asserts.c.
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Lex/PreprocessorOptions.h
clang/lib/Driver/Compilation.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Lex/Pragma.cpp
clang/test/Driver/crash-report-with-asserts.c [new file with mode: 0644]
clang/test/Driver/crash-report.c