[Driver] When forcing a crash print the bug report message
authorJohn Brawn <john.brawn@arm.com>
Mon, 29 Jun 2020 12:13:12 +0000 (13:13 +0100)
committerJohn Brawn <john.brawn@arm.com>
Mon, 29 Jun 2020 12:13:12 +0000 (13:13 +0100)
commitce1fa201af77e60d31b48571ffa1f85b919f6245
tree865dcccb3584c061a2d6cde08eca5b794a3dbb36
parent52911428ef50556edbddd9e32220c22e8755a002
[Driver] When forcing a crash print the bug report message

Commit a945037e8fd0c30e250a62211469eea6765a36ae moved the printing of the
"PLEASE submit a bug report" message to the crash handler, but that means we
don't print it when forcing a crash using FORCE_CLANG_DIAGNOSTICS_CRASH. Fix
this by adding a function to get the bug report message and printing it when
forcing a crash.

Differential Revision: https://reviews.llvm.org/D81672
clang/test/Driver/crash-report-crashfile.m
clang/test/Driver/crash-report-modules.m
clang/test/Driver/crash-report-null.test
clang/tools/driver/driver.cpp
llvm/include/llvm/Support/PrettyStackTrace.h
llvm/lib/Support/PrettyStackTrace.cpp